mirror of https://github.com/Icinga/icinga2.git
Fix: Table prefix was missing in some queries.
This commit is contained in:
parent
399aa74e12
commit
2ea75203ce
|
@ -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.");
|
||||||
|
|
Loading…
Reference in New Issue