Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!

Поиск
Список
Период
Сортировка
От Tsunakawa, Takayuki
Тема Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!
Дата
Msg-id 0A3221C70F24FB45833433255569204D1F521579@G01JPEXMBYT05
обсуждение исходный текст
Ответ на Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
Ответы Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!  ("Venkatesan, Sekhar" <sekhar.venkatesan@emc.com>)
Список 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


Вложения

В списке pgsql-odbc по дате отправления:

Предыдущее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Issue with Money field using ODBC to Access database