From: Larry White <ljw1001@gmail.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: prepared statement call fails
Date: Sun, 5 Dec 2004 16:59:15 -0500
Message-ID: <d15ea14a04120513591b42b74b@mail.gmail.com> (raw)
In-Reply-To: <41B37FDC.1010101@opencloud.com>
References: <d15ea14a0412051050399cd69b@mail.gmail.com>
<41B37FDC.1010101@opencloud.com>
That did the trick. Thanks much.
On Mon, 06 Dec 2004 10:38:36 +1300, Oliver Jowett <oliver@opencloud.com> wrote:
> Larry White wrote:
>
> > proc = connection.prepareCall("{ ? = call add_country( ? ? ? ? ) }");
>
> You are missing commas between your ? parameter placeholders.
>
> Try:
>
> proc = connection.prepareCall("{ ? = call add_country(?,?,?,?) }");
>
> Otherwise your code looks OK.
>
> It may be useful to turn on statement logging on the server side if you
> have more problems -- the JDBC driver is transforming your query and it
> can be useful to see exactly what's getting sent to the server.
>
> -O
>
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: ljw1001@gmail.com, oliver@opencloud.com
Subject: Re: prepared statement call fails
In-Reply-To: <d15ea14a04120513591b42b74b@mail.gmail.com>
References: <d15ea14a0412051050399cd69b@mail.gmail.com> <41B37FDC.1010101@opencloud.com> <d15ea14a04120513591b42b74b@mail.gmail.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