diff --git a/tsl/src/remote/connection.c b/tsl/src/remote/connection.c index a3bb1dec7..38523cc12 100644 --- a/tsl/src/remote/connection.c +++ b/tsl/src/remote/connection.c @@ -917,7 +917,10 @@ remote_connection_exec(TSConnection *conn, const char *cmd) ResultEntry *entry = PQresultInstanceData(res, eventproc); if (status == PGRES_FATAL_ERROR && entry == NULL) + { + res = PQmakeEmptyPGresult(conn->pg_conn, PGRES_FATAL_ERROR); PQfireResultCreateEvents(conn->pg_conn, res); + } } return res; }