Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite8839c2

Browse files
author
Barry Lind
committed
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
1 parentc020d67 commite8839c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2003, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/core/Attic/QueryExecutor.java,v 1.26 2003/09/13 04:02:13 barry Exp $
9+
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/core/Attic/QueryExecutor.java,v 1.27 2003/09/17 08:21:36 barry Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -162,7 +162,7 @@ private BaseResultSet executeV3() throws SQLException
162162
// keep processing
163163
break;
164164
case'I':// Empty Query
165-
intt =pgStream.ReceiveChar();
165+
intt =pgStream.ReceiveIntegerR(4);
166166
break;
167167
case'N':// Error Notification
168168
intl_nlen =pgStream.ReceiveIntegerR(4);
@@ -264,7 +264,7 @@ private BaseResultSet executeV2() throws SQLException
264264
// keep processing
265265
break;
266266
case'I':// Empty Query
267-
intt =pgStream.ReceiveChar();
267+
intt =pgStream.ReceiveIntegerR(4);
268268
break;
269269
case'N':// Error Notification
270270
statement.addWarning(pgStream.ReceiveString(connection.getEncoding()));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp