Core/DB: Fixes sometimes wrong values added to DB, also fixes errors when trying to convert updatefield to object.
This commit is contained in:
@@ -63,8 +63,8 @@ namespace Game
|
||||
}
|
||||
else
|
||||
{
|
||||
stmt.AddValue(5, null);
|
||||
stmt.AddValue(6, null);
|
||||
stmt.AddNull(5);
|
||||
stmt.AddNull(6);
|
||||
}
|
||||
DB.Login.DirectExecute(stmt); // Enforce saving, otherwise AddGroup can fail
|
||||
|
||||
|
||||
@@ -117,8 +117,8 @@ namespace Game
|
||||
return AccountOpResult.BadLink;
|
||||
|
||||
PreparedStatement stmt = DB.Login.GetPreparedStatement(LoginStatements.UPD_BNET_GAME_ACCOUNT_LINK);
|
||||
stmt.AddValue(0, null);
|
||||
stmt.AddValue(1, null);
|
||||
stmt.AddNull(0);
|
||||
stmt.AddNull(1);
|
||||
stmt.AddValue(2, gameAccountId);
|
||||
DB.Login.Execute(stmt);
|
||||
return AccountOpResult.Ok;
|
||||
|
||||
Reference in New Issue
Block a user