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 1E4969FB2C5 for ; Wed, 6 Sep 2006 15:10:47 -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 08151-02-3 for ; Wed, 6 Sep 2006 18:10:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by postgresql.org (Postfix) with ESMTP id 4E3619FB367 for ; Wed, 6 Sep 2006 15:08:17 -0300 (ADT) Received: from [127.0.0.1] ([70.81.162.131]) by VL-MH-MR002.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0J56006VLFDBJKE6@VL-MH-MR002.ip.videotron.ca> for pgsql-jdbc@postgresql.org; Wed, 06 Sep 2006 11:08:00 -0400 (EDT) Date: Wed, 06 Sep 2006 11:12:22 -0400 From: David Gagnon Subject: upgrade problem with driver postgresql-8.1-407.jdbc3.jar To: pgsql-jdbc@postgresql.org Message-id: <44FEE556.5000408@siunik.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200609/19 X-Sequence-Number: 15737 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