[libpostgresql-jdbc-java] 03/05: Backpatch fix for running callable statements against a 8.1+ server with the v2 protocol. In this case we can't handle out parameters and fallback to traditional processing.

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


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

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

commit 982b94cce138f1703abb44751a0f78a7017aa56c
Author: Kris Jurka <books at ejurka.com>
Date:   Tue May 23 19:37:24 2006 +0000

    Backpatch fix for running callable statements against a 8.1+ server
    with the v2 protocol.  In this case we can't handle out parameters
    and fallback to traditional processing.
---
 org/postgresql/jdbc2/AbstractJdbc2Statement.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/org/postgresql/jdbc2/AbstractJdbc2Statement.java b/org/postgresql/jdbc2/AbstractJdbc2Statement.java
index 57d6c87..1e49d22 100644
--- a/org/postgresql/jdbc2/AbstractJdbc2Statement.java
+++ b/org/postgresql/jdbc2/AbstractJdbc2Statement.java
@@ -3,7 +3,7 @@
 * Copyright (c) 2004-2005, PostgreSQL Global Development Group
 *
 * IDENTIFICATION
-*   $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.84.2.3 2006/02/01 18:52:30 jurka Exp $
+*   $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.84.2.4 2006/05/22 09:56:34 jurka Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -2314,7 +2314,7 @@ public abstract class AbstractJdbc2Statement implements BaseStatement
             throw new PSQLException (GT.tr("Malformed function or procedure escape syntax at offset {0}.", new Integer(i)),
                                      PSQLState.STATEMENT_NOT_ALLOWED_IN_FUNCTION_CALL);
 
-        if (connection.haveMinimumServerVersion("8.1"))
+        if (connection.haveMinimumServerVersion("8.1") && ((AbstractJdbc2Connection)connection).getProtocolVersion() == 3)
         {
             String s = p_sql.substring(startIndex, endIndex );
             StringBuffer sb = new StringBuffer(s);

-- 
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