Make PreparedStatements static for each database.

This commit is contained in:
hondacrx
2023-02-04 20:55:14 -05:00
parent e0e20b6b1c
commit 149fadccab
90 changed files with 922 additions and 923 deletions
+2 -2
View File
@@ -79,11 +79,11 @@ namespace Game.DungeonFinding
SQLTransaction trans = new();
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.DEL_LFG_DATA);
PreparedStatement stmt = CharacterDatabase.GetPreparedStatement(CharStatements.DEL_LFG_DATA);
stmt.AddValue(0, db_guid);
trans.Append(stmt);
stmt = DB.Characters.GetPreparedStatement(CharStatements.INS_LFG_DATA);
stmt = CharacterDatabase.GetPreparedStatement(CharStatements.INS_LFG_DATA);
stmt.AddValue(0, db_guid);
stmt.AddValue(1, GetDungeon(guid));
stmt.AddValue(2, (uint)GetState(guid));