]> granicus.if.org Git - postgresql/commitdiff
Applied patch to jdbc from Kim Ho at RedHat, fixing improper handling of empty querie...
authorBarry Lind <barry@xythos.com>
Wed, 17 Sep 2003 08:21:36 +0000 (08:21 +0000)
committerBarry Lind <barry@xythos.com>
Wed, 17 Sep 2003 08:21:36 +0000 (08:21 +0000)
 Modified Files:
  jdbc/org/postgresql/core/QueryExecutor.java

src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java

index ebc055e7ebcc987743b4f9196a2bc9b8314c0eae..b7ea0ef2b6d9baff32f7cccc7f512e3530c6f39a 100644 (file)
@@ -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()));