1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-25 22:17:45 +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 c41353cf4f
commit 4b9fe8e1a8

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 );