diff -c psqlodbc.orig\connection.c psqlodbc\connection.c *** psqlodbc.orig\connection.c Sat Dec 24 11:44:33 2005 --- psqlodbc\connection.c Sat Dec 24 11:53:18 2005 *************** *** 1506,1521 **** { if ((res->status == PGRES_EMPTY_QUERY) || (res->status == PGRES_BAD_RESPONSE)) { ! mylog("send_query: sending query failed -> abort\n"); ! QR_set_aborted(res, TRUE); QR_Destructor(res); res = NULL; goto cleanup; } else if (res->status == PGRES_FATAL_ERROR) { ! mylog("send_query: sended query failed -> abort\n"); ! QR_set_aborted(res, TRUE); goto cleanup; } if (create_keyset) --- 1506,1527 ---- { if ((res->status == PGRES_EMPTY_QUERY) || (res->status == PGRES_BAD_RESPONSE)) { ! if (CC_is_in_autocommit(self) && !CC_is_in_manual_trans(self)) ! { ! mylog("send_query: sending query failed -> abort\n"); ! QR_set_aborted(res, TRUE); ! } QR_Destructor(res); res = NULL; goto cleanup; } else if (res->status == PGRES_FATAL_ERROR) { ! if (CC_is_in_autocommit(self) && !CC_is_in_manual_trans(self)) ! { ! mylog("send_query: sended query failed -> abort\n"); ! QR_set_aborted(res, TRUE); ! } goto cleanup; } if (create_keyset)