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
Список
Дерево обсуждения
Patch for handling "autocommit=false" in postgresql.conf snpe <snpe@snpe.co.yu>
Re: Patch for handling "autocommit=false" in postgresql.conf Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch for handling "autocommit=false" in postgresql.conf snpe <snpe@snpe.co.yu>
Re: Patch for handling "autocommit=false" in postgresql.conf Bruce Momjian <pgman@candle.pha.pa.us>
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 по дате отправления