aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBarry Lind <barry@xythos.com>2003-09-17 08:21:36 +0000
committerBarry Lind <barry@xythos.com>2003-09-17 08:21:36 +0000
commite8839c2b6c00bac6d8119ec0cc27a5e77169c8a0 (patch)
tree5356d8f055e3548761d0930cd646f7f9287b9eec /src
parentc020d67bc692498520702e8b0734894558d47f70 (diff)
downloadpostgresql-e8839c2b6c00bac6d8119ec0cc27a5e77169c8a0.tar.gz
postgresql-e8839c2b6c00bac6d8119ec0cc27a5e77169c8a0.zip
Applied patch to jdbc from Kim Ho at RedHat, fixing improper handling of empty queries under the V3 protocol
Modified Files: jdbc/org/postgresql/core/QueryExecutor.java
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java b/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
index ebc055e7ebc..b7ea0ef2b6d 100644
--- a/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
+++ b/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
@@ -6,7 +6,7 @@
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/core/Attic/QueryExecutor.java,v 1.26 2003/09/13 04:02:13 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/core/Attic/QueryExecutor.java,v 1.27 2003/09/17 08:21:36 barry Exp $
*
*-------------------------------------------------------------------------
*/
@@ -162,7 +162,7 @@ public class QueryExecutor
// keep processing
break;
case 'I': // Empty Query
- int t = pgStream.ReceiveChar();
+ int t = pgStream.ReceiveIntegerR(4);
break;
case 'N': // Error Notification
int l_nlen = pgStream.ReceiveIntegerR(4);
@@ -264,7 +264,7 @@ public class QueryExecutor
// keep processing
break;
case 'I': // Empty Query
- int t = pgStream.ReceiveChar();
+ int t = pgStream.ReceiveIntegerR(4);
break;
case 'N': // Error Notification
statement.addWarning(pgStream.ReceiveString(connection.getEncoding()));