Re: ODBC & Transactions? - Mailing list pgsql-odbc

From Tom Lane
Subject Re: ODBC & Transactions?
Date
Msg-id 5234.1005154216@sss.pgh.pa.us
Whole thread Raw
In response to ODBC & Transactions?  ("Mike Miller" <mmiller@pooka.otago.ac.nz>)
List pgsql-odbc
"Mike Miller" <mmiller@pooka.otago.ac.nz> writes:
> If I execute the SQL statements using ADO in VB6:

> begin work
> update mytable set myfield='changed-data' where myid = 1
> rollback work

> and then I check the database using psql on the server box, myfield =
> 'changed-data'; and the rollback did *not* work.

> In the postgres log appears:
> NOTICE:  ROLLBACK: no transaction in progress

This strongly suggests that ODBC is emitting its own "begin" and
"commit" commands around each query that you give.  I am not an ODBC
person but I think that this misfeature is called autocommit and that
you can turn it off.

If you want to know what's really going on, try enabling query logging
at the postmaster, then look in the postmaster's log output to see what
queries are really getting sent by ODBC.

            regards, tom lane

pgsql-odbc by date:

Previous
From: "Mike Miller"
Date:
Subject: ODBC & Transactions?
Next
From: "Ryan C. Bonham"
Date:
Subject: Re: ODBC & Transactions?