RE: [INTERFACES] 7.1 beta 3 Linux ODBC BEGIN Behaviour - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject RE: [INTERFACES] 7.1 beta 3 Linux ODBC BEGIN Behaviour
Date
Msg-id EKEJJICOHDIEMGPNIFIJMEPFDIAA.Inoue@tpf.co.jp
Whole thread Raw
In response to RE: [INTERFACES] 7.1 beta 3 Linux ODBC BEGIN Behaviour  (Steve Wranovsky <stevew@merge.com>)
List pgsql-odbc
> -----Original Message-----
> From: Steve Wranovsky [mailto:stevew@merge.com]
>
> I would think you when a standard SELECT is issued, you would not want to
> have a BEGIN, however, when a SELECT FOR UPDATE is issued, you may want
> to issue the BEGIN in this case.
>
> Is it easy to discriminate between these types of selects to
> decide when to
> do the begin?
>

Unfortunately no(at least for me).
The simplest solution is to simply issue BEGIN for all statements
in autocommit off mode if transaction isn't in progress.
However there are some commands(VACUUM etc) that couldn't
be executed inside transaction blocks.

Regards,
Hiroshi Inoue


pgsql-odbc by date:

Previous
From: Steve Wranovsky
Date:
Subject: RE: [INTERFACES] 7.1 beta 3 Linux ODBC BEGIN Behaviour
Next
From: Bruce Momjian
Date:
Subject: 6.2 protocol