Don't execute DB updates for agent host objects

fixes 
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) if (!m_Connected)
return; return;
if (query.Object && query.Object->GetObject()->GetExtension("agent_check").ToBool())
return;
std::ostringstream qbuf, where; std::ostringstream qbuf, where;
int type; int type;

View File

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