diff options
author | Barry Lind <barry@xythos.com> | 2003-03-19 04:06:20 +0000 |
---|---|---|
committer | Barry Lind <barry@xythos.com> | 2003-03-19 04:06:20 +0000 |
commit | 44a6959f4aa12a4202de309bb4a828f8d6ccbb1e (patch) | |
tree | e475fc8faa414d6921cae6e0bcd49db11e7c6c66 | |
parent | c085c771d37d6084e7b5cd65a48c9af80178e099 (diff) | |
download | postgresql-44a6959f4aa12a4202de309bb4a828f8d6ccbb1e.tar.gz postgresql-44a6959f4aa12a4202de309bb4a828f8d6ccbb1e.zip |
Applied patch to work around server bug.
Modified Files:
jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java b/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java index 9c874489fc9..bf7027ef56e 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java @@ -9,7 +9,7 @@ * Copyright (c) 2003, PostgreSQL Global Development Group * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.17 2003/03/07 18:39:43 barry Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.18 2003/03/19 04:06:20 barry Exp $ * *------------------------------------------------------------------------- */ @@ -892,7 +892,11 @@ public abstract class AbstractJdbc1Connection implements BaseConnection //We do the select to ensure a transaction is in process //before we do the commit to avoid warning messages //from issuing a commit without a transaction in process - execSQL("select 1; commit; set autocommit = on;"); + //NOTE this is done in two network roundtrips to work around + //a server bug in 7.3 where the select wouldn't actually start + //a new transaction if in the same command as the commit + execSQL("select 1;"); + execSQL("commit; set autocommit = on;"); } else { |