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 01E789FB361 for ; Wed, 30 Aug 2006 20:56:31 -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 65390-06 for ; Wed, 30 Aug 2006 23:56:28 +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 6157F9FB35F for ; Wed, 30 Aug 2006 20:56:28 -0300 (ADT) Received: (qmail 25963 invoked from network); 30 Aug 2006 23:56:27 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 30 Aug 2006 23:56:27 -0000 In-Reply-To: <44F61B1B.4030009@imageworks.com> References: <44F61B1B.4030009@imageworks.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/alternative; boundary=Apple-Mail-17-433843065 Message-Id: <4FBCA43B-C86C-4FEC-ADE1-DBA8986E1760@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org From: Dave Cramer Subject: Re: jdbc3, pg 8.1.4 , and stored procedures Date: Wed, 30 Aug 2006 19:56:25 -0400 To: chambers@imageworks.com X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.496 tagged_above=0 required=5 tests=HTML_40_50, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/181 X-Sequence-Number: 15708 --Apple-Mail-17-433843065 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Matt, That's pretty strange, the test suite in the driver uses exactly the same syntax. Can you send a self contained test that fails ? Dave On 30-Aug-06, at 7:11 PM, Matt Chambers wrote: > Greetings. I've inherited this Tomcat / Postgres application and > I'm having a problem, not sure what is. Basically, its a postgres > 8.1.4 server and a tomcat application. All of the SQL is done in > plpgsql, which is called with prepareCall statements, example: > > "{ ? = call getDispatchList ( ? ) }" > > With the 7.4 driver it works, with the 8.1 driver every query fails > with: > > WARNING: Caught unexpected: org.postgresql.util.PSQLException: > Malformed function or procedure escape syntax at offset 4., > org.postgresql.util.PSQLException: Malformed function or procedure > escape syntax at offset 4. > > I've been able to move the other applications over to the 8.1 > driver (none use stored procedures) no problem. What is the secret? > > -- > Matt Chambers > Sony Pictures Imageworks > Software Engineer > Phone: (310) 840 9072 > Cell: (703) 624 0221 --Apple-Mail-17-433843065 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Matt,

That's pretty strange, the = test suite in the driver uses exactly the same syntax.=A0

Can you send a self = contained test that fails ?

Dave
On = 30-Aug-06, at 7:11 PM, Matt Chambers wrote:

= Greetings.=A0 I've inherited this Tomcat / Postgres application and I'm = having a problem, not sure what is.=A0 Basically, its a postgres 8.1.4 = server and a tomcat application.=A0 All of the SQL is done in plpgsql, = which is called with prepareCall statements, example:

=A0"{ ? =3D= call getDispatchList ( ? ) }"

With the 7.4 driver it works, = with the 8.1 driver every query fails with:

WARNING: Caught = unexpected: org.postgresql.util.PSQLException: Malformed function or = procedure escape syntax at offset 4., org.postgresql.util.PSQLException: = Malformed function or procedure escape syntax at offset 4.

I've = been able to move the other applications over to the 8.1 driver (none = use stored procedures) no problem.=A0 What is the secret?


= --Apple-Mail-17-433843065--