diff options
author | Dave Cramer <davec@fastcrypt.com> | 2003-12-18 03:29:12 +0000 |
---|---|---|
committer | Dave Cramer <davec@fastcrypt.com> | 2003-12-18 03:29:12 +0000 |
commit | b304212560985b25b210cfb72b655bcaa432f349 (patch) | |
tree | e9873611187e5e435bf2f78bdcff0ac16408cb09 /src | |
parent | 663c8295a8594562654bd1bdaf5fad414d6f82c6 (diff) | |
download | postgresql-b304212560985b25b210cfb72b655bcaa432f349.tar.gz postgresql-b304212560985b25b210cfb72b655bcaa432f349.zip |
back patch by Kris Jurka to get the correct protocol version from the server
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java | 4 | ||||
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java b/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java index 193de9e6105..5f46ad12068 100644 --- a/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java +++ b/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java @@ -6,7 +6,7 @@ * Copyright (c) 2003, PostgreSQL Global Development Group * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/fastpath/Attic/Fastpath.java,v 1.16.2.1 2003/12/17 15:48:39 davec Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/fastpath/Attic/Fastpath.java,v 1.16.2.2 2003/12/18 03:29:12 davec Exp $ * *------------------------------------------------------------------------- */ @@ -63,7 +63,7 @@ public class Fastpath */ public Object fastpath(int fnid, boolean resulttype, FastpathArg[] args) throws SQLException { - if (conn.haveMinimumCompatibleVersion("7.4")) { + if (conn.getPGProtocolVersionMajor() == 3) { return fastpathV3(fnid, resulttype, args); } else { return fastpathV2(fnid, resulttype, args); diff --git a/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java b/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java index fd451f5db78..1f6b8e53272 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.27 2003/10/29 02:39:09 davec Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.27.2.1 2003/12/18 03:29:12 davec Exp $ * *------------------------------------------------------------------------- */ @@ -1109,7 +1109,7 @@ public abstract class AbstractJdbc1Connection implements BaseConnection */ public void close() throws SQLException { - if (haveMinimumCompatibleVersion("7.4")) { + if (getPGProtocolVersionMajor() == 3) { closeV3(); } else { closeV2(); |