Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5cad681

Browse files
author
Barry Lind
committed
Fixed improper message length for the connection termination message 'X' when
using the V3 protocol. Modified Files: jdbc1/AbstractJdbc1Connection.java
1 parent d3fe721 commit 5cad681

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Copyright (c) 2003, PostgreSQL Global Development Group
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.22 2003/08/11 20:54:55 barry Exp $
12+
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.23 2003/08/15 18:36:58 barry Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -1121,7 +1121,7 @@ public void closeV3() throws SQLException
11211121
try
11221122
{
11231123
pgStream.SendChar('X');
1124-
pgStream.SendInteger(0,4);
1124+
pgStream.SendInteger(4,4);
11251125
pgStream.flush();
11261126
pgStream.close();
11271127
}

0 commit comments

Comments
 (0)