File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/interfaces/jdbc/org/postgresql/jdbc1 Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 9
9
* Copyright (c) 2003, PostgreSQL Global Development Group
10
10
*
11
11
* IDENTIFICATION
12
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.17 2003/03/07 18:39:43 barry Exp $
12
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.18 2003/03/19 04:06:20 barry Exp $
13
13
*
14
14
*-------------------------------------------------------------------------
15
15
*/
@@ -892,7 +892,11 @@ public void setAutoCommit(boolean autoCommit) throws SQLException
892
892
//We do the select to ensure a transaction is in process
893
893
//before we do the commit to avoid warning messages
894
894
//from issuing a commit without a transaction in process
895
- execSQL ("select 1; commit; set autocommit = on;" );
895
+ //NOTE this is done in two network roundtrips to work around
896
+ //a server bug in 7.3 where the select wouldn't actually start
897
+ //a new transaction if in the same command as the commit
898
+ execSQL ("select 1;" );
899
+ execSQL ("commit; set autocommit = on;" );
896
900
}
897
901
else
898
902
{
You can’t perform that action at this time.
0 commit comments