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 EFBCD9FB35D for ; Wed, 30 Aug 2006 20:30:22 -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 57496-05 for ; Wed, 30 Aug 2006 23:30:12 +0000 (UTC) X-Greylist: delayed 00:18:30.621564 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 7E4C19FB370 for ; Wed, 30 Aug 2006 20:29:59 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from outbound1-blu-R.bigfish.com (outbound-blu.frontbridge.com [65.55.251.16]) by svr4.postgresql.org (Postfix) with ESMTP id A64D65AF8A1 for ; Wed, 30 Aug 2006 23:11:27 +0000 (GMT) Received: from outbound1-blu.bigfish.com (localhost.localdomain [127.0.0.1]) by outbound1-blu-R.bigfish.com (Postfix) with ESMTP id E69EBE69C87 for ; Wed, 30 Aug 2006 23:11:25 +0000 (UTC) Received: from mail98-blu-R.bigfish.com (unknown [10.1.252.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by outbound1-blu.bigfish.com (Postfix) with ESMTP id CD78D1009E for ; Wed, 30 Aug 2006 23:11:25 +0000 (UTC) Received: from mail98-blu (localhost.localdomain [127.0.0.1]) by mail98-blu-R.bigfish.com (Postfix) with ESMTP id 373FA40153 for ; Wed, 30 Aug 2006 23:11:25 +0000 (UTC) X-BigFish: V Received: by mail98-blu (MessageSwitch) id 1156979484930601_31790; Wed, 30 Aug 2006 23:11:24 +0000 (UCT) Received: from owa1.spimageworks.com (unknown [160.33.20.31]) by mail98-blu.bigfish.com (Postfix) with ESMTP id 5EAE21390098 for ; Wed, 30 Aug 2006 23:11:24 +0000 (UTC) Received: from [172.29.105.69] ([172.30.104.3]) by owa1.spimageworks.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 30 Aug 2006 16:11:23 -0700 Message-ID: <44F61B1B.4030009@imageworks.com> Date: Wed, 30 Aug 2006 16:11:23 -0700 From: Matt Chambers Reply-To: chambers@imageworks.com Organization: Sony Pictures Imageworks User-Agent: Mozilla Thunderbird 1.0.7-1.4.1.centos4 (X11/20051007) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: jdbc3, pg 8.1.4 , and stored procedures Content-Type: multipart/alternative; boundary="------------030502020407020703070700" X-OriginalArrivalTime: 30 Aug 2006 23:11:23.0786 (UTC) FILETIME=[9CADCEA0:01C6CC89] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.846 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, HTML_40_50, HTML_MESSAGE, HTML_TITLE_EMPTY X-Spam-Level: X-Archive-Number: 200608/180 X-Sequence-Number: 15707 This is a multi-part message in MIME format. --------------030502020407020703070700 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------030502020407020703070700 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 <chambers@imageworks.com>
Sony Pictures Imageworks
Software Engineer
Phone: (310) 840 9072
Cell: (703) 624 0221
--------------030502020407020703070700--