Make PreparedStatements static for each database.
This commit is contained in:
@@ -110,7 +110,7 @@ namespace Game.Chat
|
||||
static bool HandleGMListFullCommand(CommandHandler handler)
|
||||
{
|
||||
// Get the accounts with GM Level >0
|
||||
PreparedStatement stmt = DB.Login.GetPreparedStatement(LoginStatements.SEL_GM_ACCOUNTS);
|
||||
PreparedStatement stmt = LoginDatabase.GetPreparedStatement(LoginStatements.SEL_GM_ACCOUNTS);
|
||||
stmt.AddValue(0, (byte)AccountTypes.Moderator);
|
||||
stmt.AddValue(1, Global.WorldMgr.GetRealm().Id.Index);
|
||||
SQLResult result = DB.Login.Query(stmt);
|
||||
|
||||
Reference in New Issue
Block a user