X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 608D69FB2CE for ; Wed, 6 Sep 2006 14:49:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 02830-03 for ; Wed, 6 Sep 2006 17:49:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 1EE489FB2BD for ; Wed, 6 Sep 2006 14:49:25 -0300 (ADT) Received: (qmail 5953 invoked from network); 6 Sep 2006 17:49:24 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 6 Sep 2006 17:49:24 -0000 In-Reply-To: <44FED47A.3010008@siunik.com> References: <44FED47A.3010008@siunik.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3162722F-A4BB-47C0-9906-B99B83B206FE@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: upgrade problem with driver postgresql-8.1-407.jdbc3.jar Date: Wed, 6 Sep 2006 13:49:23 -0400 To: David Gagnon X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200609/18 X-Sequence-Number: 15736 David, The driver has no idea how to deal with a $, It also uses prepared statements if you use the preparedStatement interface. Dave On 6-Sep-06, at 10:00 AM, David Gagnon wrote: > Hi all, > > I'm running into this problem when upgrading my jdbc driver from > pg74.216.jdbc3.jar to postgresql-8.1-407.jdbc3.jar > > 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 > 2006-09-06 09:48:20 ERROR: syntax error at or near "$1" at > character 66 > 2006-09-06 09:48:20 STATEMENT: COPY vd (VDVSSRC, > VDVSNUM, VDKEY, VDDATA) FROM $1 > Here is the VARCHAR given for $1: > c:\\temp\\webCatalog\ > \20060517030156.zip20060517030156.zip20060517030156.zip > > If I try the corresponding command in pgAdmin3 it works well... > > Any idea what is the error? Which I suspect is quite evident .. :-/ > > Thanks for the help! > Best Regards > /David > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org >