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 23B2B9FA2CB for ; Wed, 10 May 2006 13:28:01 -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 26781-06 for ; Wed, 10 May 2006 13:27:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by postgresql.org (Postfix) with ESMTP id 3B3319FA293 for ; Wed, 10 May 2006 13:27:50 -0300 (ADT) Received: from deimos.muc.ecircle.de (deimos.muc.ecircle.de [192.168.1.4]) by mail.ecircle.de (READY) with ESMTP id 2AF2D55C74D for ; Wed, 10 May 2006 18:27:47 +0200 (CEST) Received: from [192.168.1.91] ([192.168.1.91]) by deimos.muc.ecircle.de with Microsoft SMTPSVC(5.0.2195.6713); Wed, 10 May 2006 18:27:58 +0200 Subject: backwards compatibility problem From: Csaba Nagy To: Postgres JDBC Content-Type: text/plain Message-Id: <1147278466.14093.341.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 10 May 2006 18:27:46 +0200 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 May 2006 16:27:58.0219 (UTC) FILETIME=[B2C565B0:01C6744E] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/30 X-Sequence-Number: 15158 Hi all, I was trying to upgrade the postgres JDBC driver I was using due to the fix for supporting high-unicode characters. I was using before the file: postgresql-8.1dev-400.jdbc3.jar and upgraded to: postgresql-8.1-405.jdbc3.jar The new one fixes indeed the high-unicode character support, but it breaks other code we have... Specifically, with the former driver the following query would work: select ? - '1 day'::interval where the parameter is set to a timestamp value (either via setTimestamp or setObject without specifying the type, the result is the same). With the new driver the same code results in: ERROR: invalid input syntax for type interval: "2006-05-10 18:15:47.679000 +0200" Casting the ? sign to timestamp in the query works here (tested), but I wonder why this was working in the older driver and stopped working with the newer. AFAIK the protocol did not change and strict typing was required already with the old driver, so how come that got it right and the new one does not ? Thanks, Csaba.