Skip to content

Commit bb58eed

Browse files
author
Dave Cramer
committed
patch by Kris Jurka to use the correct protocol based upon server information
1 parent 38b0dff commit bb58eed

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2003, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java,v 1.19 2003/12/17 15:45:05 davec Exp $
9+
* $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java,v 1.20 2003/12/18 03:27:14 davec Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -63,7 +63,7 @@ public Fastpath(BaseConnection conn, PGStream stream)
6363
*/
6464
public Object fastpath(int fnid, boolean resulttype, FastpathArg[] args) throws SQLException
6565
{
66-
if (conn.haveMinimumCompatibleVersion("7.4")) {
66+
if (conn.getPGProtocolVersionMajor() == 3) {
6767
return fastpathV3(fnid, resulttype, args);
6868
} else {
6969
return fastpathV2(fnid, resulttype, args);

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-
* $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java,v 1.28 2003/11/29 19:52:09 pgsql Exp $
12+
* $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java,v 1.29 2003/12/18 03:27:15 davec Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -1109,7 +1109,7 @@ private void initObjectTypes()
11091109
*/
11101110
public void close() throws SQLException
11111111
{
1112-
if (haveMinimumCompatibleVersion("7.4")) {
1112+
if (getPGProtocolVersionMajor() == 3) {
11131113
closeV3();
11141114
} else {
11151115
closeV2();

0 commit comments

Comments
 (0)