mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 11:21:29 +00:00
Update database [skip ci]
This commit is contained in:
parent
1a577014d9
commit
b165760f18
@ -452,7 +452,7 @@ bool Database::CreateWorldRegistration(
|
|||||||
unsigned int &id
|
unsigned int &id
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
auto results = QueryDatabase("SELECT max(id) + 1 FROM login_world_servers");
|
auto results = QueryDatabase("SELECT IFNULL(max(id), 0) + 1 FROM login_world_servers");
|
||||||
if (!results.Success() || results.RowCount() != 1) {
|
if (!results.Success() || results.RowCount() != 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user