X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8B91152927 for ; Tue, 9 Aug 2005 20:52:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48344-01 for ; Tue, 9 Aug 2005 23:52:44 +0000 (GMT) Received: from turing.morons.org (turing.morons.org [209.237.229.34]) by svr1.postgresql.org (Postfix) with ESMTP id 186D152909 for ; Tue, 9 Aug 2005 20:52:43 -0300 (ADT) Received: by turing.morons.org (Postfix, from userid 1001) id 4E140A935; Tue, 9 Aug 2005 16:53:40 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 4CE5EA92F for ; Tue, 9 Aug 2005 16:53:40 -0700 (PDT) Date: Tue, 9 Aug 2005 16:53:40 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing.morons.org To: pgsql-jdbc@postgresql.org Subject: 8.0.3 parse errors where 7.x was ok Message-ID: <20050809164256.D7871@turing.morons.org> X-what-happen: someone set up us the bomb X-Message-Flags: Spatula Precedence: special-delivery MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200508/61 X-Sequence-Number: 13630 I'm getting a new exception when upgrading to Postgres 8.0.3 with the JDBC drivers it builds: java.sql.SQLException: ERROR: parse error at or near "$1" This is happening with the following bit of code: 105 try { 106 s = c.prepareStatement("select now() - interval ?"); 107 s.setString(1, "7 days"); 108 ResultSet r = s.executeQuery(); The driver was built from postgresql-jdbc-8.0-311.src using the FreeBSD port on FreeBSD 5.4 with Java 1.4.2-p7. Using the older jar built for postgresql-7.3.4 works fine. Is this syntax no longer supported? Nick -- "The aptly-named morons.org is an obscenity-laced screed..." -- Robert P. Lockwood, Catholic League director of research Nick Johnson, version 2.1 http://web.morons.org/