diff --git a/orm_lib/src/postgresql_impl/PgConnection.cc b/orm_lib/src/postgresql_impl/PgConnection.cc index e907304b..9b683214 100644 --- a/orm_lib/src/postgresql_impl/PgConnection.cc +++ b/orm_lib/src/postgresql_impl/PgConnection.cc @@ -336,7 +336,7 @@ void PgConnection::handleRead() } if (_isWorking) { - if (_isRreparingStatement) + if (_isRreparingStatement && _cb) { doAfterPreparing(); }