Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbb58eed

Browse files
author
Dave Cramer
committed
patch by Kris Jurka to use the correct protocol based upon server information
1 parent38b0dff commitbb58eed

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
publicObjectfastpath(intfnid,booleanresulttype,FastpathArg[]args)throwsSQLException
6565
{
66-
if (conn.haveMinimumCompatibleVersion("7.4")) {
66+
if (conn.getPGProtocolVersionMajor() ==3) {
6767
returnfastpathV3(fnid,resulttype,args);
6868
}else {
6969
returnfastpathV2(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
publicvoidclose()throwsSQLException
11111111
{
1112-
if (haveMinimumCompatibleVersion("7.4")) {
1112+
if (getPGProtocolVersionMajor() ==3) {
11131113
closeV3();
11141114
}else {
11151115
closeV2();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp