Index: src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java =================================================================== RCS file: /projects/cvsroot/pgsql-server/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java,v retrieving revision 1.27 diff -c -r1.27 AbstractJdbc1Connection.java *** src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java 29 Oct 2003 02:39:09 -0000 1.27 --- src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java 18 Dec 2003 00:01:23 -0000 *************** *** 150,157 **** --- 150,159 ---- useSSL = false; } + boolean guessedCompatible = false; if (info.getProperty("compatible") == null) { + guessedCompatible = true; compatible = d.getMajorVersion() + "." + d.getMinorVersion(); } else *************** *** 213,218 **** --- 215,230 ---- openConnectionV3(host,port,info,database,url,d,password); } else { openConnectionV2(host,port,info,database,url,d,password); + } + + // use the server version rather than the driver + // version unless it was specified explicitly + // + // don't allow a compatible version higher than the server + // we are connected to. + // + if (guessedCompatible || getDBVersionNumber().compareTo(compatible) < 0) { + compatible = getDBVersionNumber(); } }