1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-05 09:19:17 +03:00

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
This commit is contained in:
Barry Lind 2003-09-17 08:21:36 +00:00
parent c020d67bc6
commit e8839c2b6c

View File

@ -6,7 +6,7 @@
* Copyright (c) 2003, PostgreSQL Global Development Group * Copyright (c) 2003, PostgreSQL Global Development Group
* *
* IDENTIFICATION * 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 // keep processing
break; break;
case 'I': // Empty Query case 'I': // Empty Query
int t = pgStream.ReceiveChar(); int t = pgStream.ReceiveIntegerR(4);
break; break;
case 'N': // Error Notification case 'N': // Error Notification
int l_nlen = pgStream.ReceiveIntegerR(4); int l_nlen = pgStream.ReceiveIntegerR(4);
@ -264,7 +264,7 @@ public class QueryExecutor
// keep processing // keep processing
break; break;
case 'I': // Empty Query case 'I': // Empty Query
int t = pgStream.ReceiveChar(); int t = pgStream.ReceiveIntegerR(4);
break; break;
case 'N': // Error Notification case 'N': // Error Notification
statement.addWarning(pgStream.ReceiveString(connection.getEncoding())); statement.addWarning(pgStream.ReceiveString(connection.getEncoding()));