Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!! - Mailing list pgsql-odbc

From Tsunakawa, Takayuki
Subject Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!
Date
Msg-id 0A3221C70F24FB45833433255569204D1F521579@G01JPEXMBYT05
Whole thread Raw
In response to Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
Responses Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!  ("Venkatesan, Sekhar" <sekhar.venkatesan@emc.com>)
List pgsql-odbc
Sorry, the attached test program is the right one.

Try adding the following line in postgresql.conf and run your program:

    log_statement = 'all'

If SQL_AUTOCOMMIT_OFF is effective, these lines are output in the server log.  This shows that the ODBC driver sent
BEGINat the first SQL statement in a transaction, and the application explicitly committed the transaction with
SQLEndTran(SQL_COMMIT).

LOG:  statement: BEGIN;INSERT INTO a VALUES(100)
LOG:  statement: COMMIT

If SQL_AUTOCOMMIT_ON is effective, this line is output.  The ODBC driver doesn't send BEGIN.

LOG:  statement: INSERT INTO a VALUES(100)

Regards
Takayuki Tsunakawa


Attachment

pgsql-odbc by date:

Previous
From: "Tsunakawa, Takayuki"
Date:
Subject: Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!
Next
From: Adrian Klaver
Date:
Subject: Re: Issue with Money field using ODBC to Access database