Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 24B989FBE8D for ; Fri, 4 May 2007 13:19:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 37466-08 for ; Fri, 4 May 2007 13:19:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 7E4649FBE73 for ; Fri, 4 May 2007 13:19:13 -0300 (ADT) Received: (qmail 729 invoked by uid 1112); 4 May 2007 16:19:12 -0000 Date: Fri, 4 May 2007 12:19:12 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: "B. Jordan" cc: pgsql-jdbc@postgresql.org Subject: Re: error: unterminated dollar-quoted string with 8.2-505.jdbc3.jar? In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/11 X-Sequence-Number: 17001 On Fri, 4 May 2007, B. Jordan wrote: > After digging through the archives and looking at the changelog for > 8.2-505 and 8.2-504, it seems that $$ should work, but I'm still > getting errors. > > Here's the error message: > Caused by: org.postgresql.util.PSQLException: ERROR: unterminated > dollar-quoted string at or near "$BODY$ BEGIN DELETE FROM ..." > > Any particular reason I shouldn't be able to execute that with the > latest version (8.2-505) of the driver? Are you sure you don't have multiple versions of the driver around and it's selecting an older version? The error above is exactly what I'd expect to see with a pre-8.2 driver. You could also enable statement logging on the server to see exactly what the driver is sending to it. Kris Jurka