Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 742929FB8E9 for ; Mon, 7 May 2007 11:54:00 -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 86523-03 for ; Mon, 7 May 2007 11:53:50 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by postgresql.org (Postfix) with ESMTP id CB2809FB8CB for ; Mon, 7 May 2007 11:53:56 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id k3so849175ugf for ; Mon, 07 May 2007 07:53:55 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VY39k6HyZZ5Cza7f4JZLl/UOGk1Kh8RxU48lI1Xry7NitLqnQcWU8MrHEWGbffmy3410iOVrgBPx1FC5eoeDcA+weeOSTYNozkz3FugAtLTMd8CnKYgxDYIXtqAtXn6F1KqJ+PykteqonKbO/sh+mVP5eykUWdn3UqdwiaqKpXI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=co1rc1Mz8yzVKPgOCRt7GLoZejlEcyljWDKzRQnmqwSfOnTKcCzN7KFpj28z/eLZbCoFgKlv0CC+mzRpbfoLwj0We7iBON3h3Aj7XiZIqp8nbd2AR909+jRkhRe4CkjOPhYw4VKaaGNsV7SoOe9JWE/0Y09WFawYDMe0Wn8hKVI= Received: by 10.78.183.8 with SMTP id g8mr2201558huf.1178549634669; Mon, 07 May 2007 07:53:54 -0700 (PDT) Received: by 10.78.90.17 with HTTP; Mon, 7 May 2007 07:53:54 -0700 (PDT) Message-ID: Date: Mon, 7 May 2007 10:53:54 -0400 From: "B. Jordan" To: pgsql-jdbc@postgresql.org Subject: Re: error: unterminated dollar-quoted string with 8.2-505.jdbc3.jar? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/38 X-Sequence-Number: 17028 Kris, Thanks for the quick reply- I meant to include in my original email that I tried it via the following mechanisms: - maven's sql executor plugin - eclipse quantumDb plugin and yes I did verify that they are using the correct version of the driver (since Maven is notorious for causing confusion with dependencies). Turns out, both of the above tools parse statements based on semi-colons (for purposes of "autocommit"- to run each statement individually), which won't work for stored procedures/functions. I wrote a little driver program to test it out by sending in the entire text of my script file in as one statement, and it worked fine with both the 8.2-505 and 8.2-504 drivers. Sorry for the bother, but I figured I'd post my findings just in case anyone else runs into a similar issue. Thanks, Bucky On 5/4/07, Kris Jurka wrote: > > > 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 > >