X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D0E989FA278 for ; Wed, 24 May 2006 14:21:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 05127-09 for ; Wed, 24 May 2006 14:21:10 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 0D78B9F94EA for ; Wed, 24 May 2006 14:21:09 -0300 (ADT) Received: from smtpgw.computec.de (smtpgw.computec.de [212.123.108.8]) by svr4.postgresql.org (Postfix) with ESMTP id A0A7B5AF03E for ; Wed, 24 May 2006 17:21:08 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtpgw.computec.de (Postfix) with ESMTP id 8CCCE2EC18 for ; Wed, 24 May 2006 19:21:02 +0200 (CEST) Received: from smtpgw.computec.de ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27711-04-5 for ; Wed, 24 May 2006 19:21:01 +0200 (CEST) Received: from HERMES.computec.de (unknown [192.168.0.22]) by smtpgw.computec.de (Postfix) with ESMTP id 2E3CF2EC5B for ; Wed, 24 May 2006 19:21:01 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Upgrading driver from 7.4 to 8.1 Date: Wed, 24 May 2006 17:47:37 +0200 Message-ID: <28011CD60FB1724DBA4442E38277F62601533017@hermes.computec.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Upgrading driver from 7.4 to 8.1 Thread-Index: AcZ/SWGYd93EOFuFRL2BV/3Ogv2s/A== From: "Markus Wollny" To: X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at computec.de X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/127 X-Sequence-Number: 15255 Hello! Due to the recent security bugfix for PostgreSQL 8.1, I wanted to upgrade my drivers according to the recommendations here http://www.postgresql.org/docs/techdocs.49 Now we're currently using pg74.216.jdbc3.jar, even though we've long ago upgraded our databases to version 8.1 (running 8.1.4 from today on). Our applications are using ColdFusion MX 6.1 and the datasources are configured using the official PostgreSQL JDBC driver. I just tried to replace the old 7.4 driver with the latest 8.1 version postgresql-8.1-407.jdbc3.jar. The datasource verifies okay, so the connection actually works.=20 Some queries fail, however, as in this example: select GROUP_ID, GROUP_NAME, [...] from MY_RESULT where RULE_READ <=3D (param 1) I suspect that this happens everytime we try to send out-of-line parameters using ColdFusions cfqueryparam syntax in conjunction with Query-of-Queries (i.e. executing a query on a resultset of a previous query) like this: select GROUP_ID, GROUP_NAME, [...] from MY_RESULT where RULE_READ <=3D As far as I know, ColdFusions cfqueryparam not only deals with the binding of parameters and checking the validity of the values, it also uses SQLPrepare/SQLExecute for execution. When I switch back to the 7.4 driver version, everything is fine again. Now I don't really understand what's going on, as ColdFusion doesn't really give me so much as an error _message_, just that an error has ocurred in this query, even with debugging turned on. Now I do get a java.sql.SQLException with a wonderfully useless stack trace, too (see below), but as I am not an Adobe developer I cannot really make much of this information. So I wonder if you'd have some suggestion as to the differences between the two driver versions that could possibly lead to symptoms such as this? Here's the (probably useless) stacktrace (abbreviated), the init.inc-script contains the aforementioned query: java.sql.SQLException at coldfusion.sql.JdbcImpl.getConnection(JdbcImpl.java:73) at coldfusion.sql.JdbcImpl.getConnection(JdbcImpl.java:56) at coldfusion.sql.SqlImpl.execute(SqlImpl.java:214) at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:447) at cfinit2einc50524585.runPage(/somepath/to/my/scripts/directory/init.inc:4 4) [...]=20 If there's no other way, I'll have to stay with the 7.4 version. Will the client-side fixes for the 8.1.4 release be backported to the 7.4-line of the JDBC driver? Kind regards Markus