Don't execute DB updates for agent host objects

fixes #8296
This commit is contained in:
Gunnar Beutner 2015-01-27 15:11:45 +01:00
parent fb44744680
commit 091d79ea4a
2 changed files with 6 additions and 0 deletions

View File

@ -600,6 +600,9 @@ void IdoMysqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
if (!m_Connected)
return;
if (query.Object && query.Object->GetObject()->GetExtension("agent_check").ToBool())
return;
std::ostringstream qbuf, where;
int type;

View File

@ -594,6 +594,9 @@ void IdoPgsqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
if (!m_Connection)
return;
if (query.Object && query.Object->GetObject()->GetExtension("agent_check").ToBool())
return;
std::ostringstream qbuf, where;
int type;