1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-04 17:57:47 +00:00

fixed a sql but when grabbing a new 64 bit uid

This commit is contained in:
Mordred 2017-11-01 23:28:32 +01:00
parent 04c7b9d78d
commit 54031902ee

View file

@ -365,7 +365,7 @@ namespace Core {
g_charaDb.directExecute( std::string( "INSERT INTO uniqueiddata( IdName ) VALUES( 'NOT_SET' );" ) );
auto res = g_charaDb.query( "SELECT LAST_INSERT_ID();" );
if( !res )
if( !res->next() )
return 0;
return res->getUInt64( 1 );