pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matt Chambers <chambers@imageworks.com>
To: pgsql-jdbc@postgresql.org
Subject: jdbc3, pg 8.1.4 , and stored procedures
Date: Wed, 30 Aug 2006 16:11:23 -0700
Message-ID: <44F61B1B.4030009@imageworks.com> (raw)

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

view thread (5+ messages)  latest in thread

Message-ID: <44F61B1B.4030009@imageworks.com>
Permalink:  ../44F61B1B.4030009@imageworks.com/
Also on:    postgresql.org/message-id/44F61B1B.4030009@imageworks.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: chambers@imageworks.com
  Subject: Re: jdbc3, pg 8.1.4 , and stored procedures
  In-Reply-To: <44F61B1B.4030009@imageworks.com>
  References: <44F61B1B.4030009@imageworks.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox