[libpostgresql-jdbc-java] 15/19: back patch by Kris Jurka to get the correct protocol version from the server

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:19:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to tag REL7_4_1
in repository libpostgresql-jdbc-java.

commit 8d172d8e0a576051292610d152d5bf7347484df1
Author: Dave Cramer <davec at fastcrypt.com>
Date:   Thu Dec 18 03:29:12 2003 +0000

    back patch by Kris Jurka to get the correct protocol version from the server
---
 org/postgresql/fastpath/Fastpath.java             | 2 +-
 org/postgresql/jdbc1/AbstractJdbc1Connection.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/org/postgresql/fastpath/Fastpath.java b/org/postgresql/fastpath/Fastpath.java
index 1427a45..56a6b8a 100644
--- a/org/postgresql/fastpath/Fastpath.java
+++ b/org/postgresql/fastpath/Fastpath.java
@@ -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/org/postgresql/jdbc1/AbstractJdbc1Connection.java b/org/postgresql/jdbc1/AbstractJdbc1Connection.java
index ab4a078..33cab33 100644
--- a/org/postgresql/jdbc1/AbstractJdbc1Connection.java
+++ b/org/postgresql/jdbc1/AbstractJdbc1Connection.java
@@ -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();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git



More information about the pkg-java-commits mailing list