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:
parent
c41353cf4f
commit
4b9fe8e1a8
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue