RE: [INTERFACES] 7.1 beta 3 Linux ODBC BEGIN Behaviour

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема RE: [INTERFACES] 7.1 beta 3 Linux ODBC BEGIN Behaviour
Дата
Msg-id EKEJJICOHDIEMGPNIFIJMEPFDIAA.Inoue@tpf.co.jp
обсуждение исходный текст
Ответ на RE: [INTERFACES] 7.1 beta 3 Linux ODBC BEGIN Behaviour  (Steve Wranovsky <stevew@merge.com>)
Список 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 по дате отправления:

Предыдущее
От: Steve Wranovsky
Дата:
Сообщение: RE: [INTERFACES] 7.1 beta 3 Linux ODBC BEGIN Behaviour
Следующее
От: Bruce Momjian
Дата:
Сообщение: 6.2 protocol