mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
From Zoltan Kovacs back in April (sorry for the delay Zoltan!):
I modified the current ODBC driver for * referential integrity error reporting, * SELECT in transactions and * disabling autocommit. I tested these changes with Borland C++ Builder -> ODBCExpress -> WinODBC driver (DLL) -> Postgres 7.0beta1 and Borland C++ Builder -> BDE -> WinODBC driver (DLL) -> Postgres 7.0beta1. The patch is based on snapshot of 22th April (I don't think that someone has modified it since that: Byron hasn't gave any sign of living for about a month and I didn't find any comments about the ODBC driver on the list).
This commit is contained in:
@ -330,6 +330,15 @@ int i;
|
||||
switch(vParam) {
|
||||
case SQL_AUTOCOMMIT_OFF:
|
||||
CC_set_autocommit_off(conn);
|
||||
/* The following two lines are new.
|
||||
With this modification the SELECT statements
|
||||
are also included in the transactions.
|
||||
Error handling should be written,
|
||||
this is missing yet, see
|
||||
SC_execute in statement.c for details. Zoltan
|
||||
*/
|
||||
CC_send_query(conn,"BEGIN",NULL);
|
||||
CC_set_in_trans(conn);
|
||||
break;
|
||||
|
||||
case SQL_AUTOCOMMIT_ON:
|
||||
|
Reference in New Issue
Block a user