From 5cad6813fb46ea33c60a845b9abdfe0be80fd3da Mon Sep 17 00:00:00 2001 From: Barry Lind Date: Fri, 15 Aug 2003 18:36:58 +0000 Subject: [PATCH] Fixed improper message length for the connection termination message 'X' when using the V3 protocol. Modified Files: jdbc1/AbstractJdbc1Connection.java --- .../jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java b/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java index 1264c9f063..c3d644bdbf 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java @@ -9,7 +9,7 @@ * Copyright (c) 2003, PostgreSQL Global Development Group * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.22 2003/08/11 20:54:55 barry Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.23 2003/08/15 18:36:58 barry Exp $ * *------------------------------------------------------------------------- */ @@ -1121,7 +1121,7 @@ public abstract class AbstractJdbc1Connection implements BaseConnection try { pgStream.SendChar('X'); - pgStream.SendInteger(0,4); + pgStream.SendInteger(4,4); pgStream.flush(); pgStream.close(); } -- 2.40.0