mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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) {
|
||||
case DbQueryInsert:
|
||||
qbuf << "INSERT INTO " << query.Table;
|
||||
qbuf << "INSERT INTO " << GetTablePrefix() << query.Table;
|
||||
break;
|
||||
case DbQueryUpdate:
|
||||
qbuf << "UPDATE " << query.Table << "SET";
|
||||
qbuf << "UPDATE " << GetTablePrefix() << query.Table << "SET";
|
||||
break;
|
||||
case DbQueryDelete:
|
||||
qbuf << "DELETE FROM " << query.Table;
|
||||
qbuf << "DELETE FROM " << GetTablePrefix() << query.Table;
|
||||
break;
|
||||
default:
|
||||
ASSERT(!"Invalid query type.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user