Fix: Table prefix was missing in some queries.

This commit is contained in:
Gunnar Beutner 2013-08-01 09:47:47 +02:00
parent 399aa74e12
commit 2ea75203ce
1 changed files with 3 additions and 3 deletions

View File

@ -336,13 +336,13 @@ void MysqlDbConnection::ExecuteQuery(const DbQuery& query)
switch (query.Type) { switch (query.Type) {
case DbQueryInsert: case DbQueryInsert:
qbuf << "INSERT INTO " << query.Table; qbuf << "INSERT INTO " << GetTablePrefix() << query.Table;
break; break;
case DbQueryUpdate: case DbQueryUpdate:
qbuf << "UPDATE " << query.Table << "SET"; qbuf << "UPDATE " << GetTablePrefix() << query.Table << "SET";
break; break;
case DbQueryDelete: case DbQueryDelete:
qbuf << "DELETE FROM " << query.Table; qbuf << "DELETE FROM " << GetTablePrefix() << query.Table;
break; break;
default: default:
ASSERT(!"Invalid query type."); ASSERT(!"Invalid query type.");