Patch for handling "autocommit=false" in postgresql.conf

Поиск
Список
Период
Сортировка
От snpe
Тема Patch for handling "autocommit=false" in postgresql.conf
Дата
Msg-id 200209171425.50940.snpe@snpe.co.yu
обсуждение исходный текст
Ответы Re: Patch for handling "autocommit=false" in postgresql.conf
Список pgsql-jdbc
Hello,
   This is patch for handle JDBC for autocommit=false in postgresql.conf

Patch set autocommit mode to true (on) for JDBC compliant.
--- AbstractJdbc1Connection.java.orig   Tue Sep 17 02:23:49 2002
+++ AbstractJdbc1Connection.java        Tue Sep 17 02:27:52 2002
@@ -366,6 +366,11 @@
                // Initialise object handling
                initObjectTypes();

+               // handle autocommit=false in postgresql.conf
+                if (haveMinimumServerVersion("7.3")) {
+                               ExecSQL("set autocommit to on; commit;");
+               }
+
                // Mark the connection as ok, and cleanup
                PG_STATUS = CONNECTION_OK;
        }
regards
Haris Peco

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

Предыдущее
От: Felipe Schnack
Дата:
Сообщение: Re: just curious
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Patch for handling "autocommit=false" in postgresql.conf