X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id DCE0A9FB388 for ; Wed, 6 Sep 2006 17:14:03 -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 76657-01-7 for ; Wed, 6 Sep 2006 17:13:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id BB55D9FB3C1 for ; Wed, 6 Sep 2006 17:13:26 -0300 (ADT) Received: from 203-173-188-119.bliink.ihug.co.nz ([203.173.188.119] helo=[10.1.1.6]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1GL3m0-00006s-HZ; Thu, 07 Sep 2006 08:13:24 +1200 Message-ID: <44FF2BE2.2020708@opencloud.com> Date: Thu, 07 Sep 2006 08:13:22 +1200 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: David Gagnon CC: pgsql-jdbc@postgresql.org Subject: Re: upgrade problem with driver postgresql-8.1-407.jdbc3.jar References: <44FED47A.3010008@siunik.com> In-Reply-To: <44FED47A.3010008@siunik.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.1 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200609/22 X-Sequence-Number: 15740 David Gagnon wrote: > I started having syntax error with the new driver and cannot find where > is the problem. > Here is the log: > 2006-09-06 09:48:20 LOG: statement: PREPARE AS COPY > vd (VDVSSRC, VDVSNUM, VDKEY, VDDATA) FROM $1 Unfortunately that means you are using a ? placeholder in a location where the server-side SQL grammar doesn't allow a parameter. You will have to construct the query by hand yourself rather than using ?. -O