diff --git a/lib/db_ido_mysql/idomysqlconnection.cpp b/lib/db_ido_mysql/idomysqlconnection.cpp index 83919a330..92af0b817 100644 --- a/lib/db_ido_mysql/idomysqlconnection.cpp +++ b/lib/db_ido_mysql/idomysqlconnection.cpp @@ -833,6 +833,8 @@ void IdoMysqlConnection::InternalDeactivateObject(const DbObject::Ptr& dbobj) /* Note that we're _NOT_ clearing the db refs via SetReference/SetConfigUpdate/SetStatusUpdate * because the object is still in the database. */ + + SetObjectActive(dbobj, false); } bool IdoMysqlConnection::FieldToEscapedString(const String& key, const Value& value, Value *result) diff --git a/lib/db_ido_pgsql/idopgsqlconnection.cpp b/lib/db_ido_pgsql/idopgsqlconnection.cpp index 0e0af13e4..bb948c738 100644 --- a/lib/db_ido_pgsql/idopgsqlconnection.cpp +++ b/lib/db_ido_pgsql/idopgsqlconnection.cpp @@ -648,6 +648,8 @@ void IdoPgsqlConnection::InternalDeactivateObject(const DbObject::Ptr& dbobj) /* Note that we're _NOT_ clearing the db refs via SetReference/SetConfigUpdate/SetStatusUpdate * because the object is still in the database. */ + + SetObjectActive(dbobj, false); } bool IdoPgsqlConnection::FieldToEscapedString(const String& key, const Value& value, Value *result)