From: Oliver Jowett <oliver@opencloud.com>
To: Larry White <ljw1001@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: prepared statement call fails
Date: Mon, 06 Dec 2004 10:38:36 +1300
Message-ID: <41B37FDC.1010101@opencloud.com> (raw)
In-Reply-To: <d15ea14a0412051050399cd69b@mail.gmail.com>
References: <d15ea14a0412051050399cd69b@mail.gmail.com>
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: oliver@opencloud.com, ljw1001@gmail.com
Subject: Re: prepared statement call fails
In-Reply-To: <41B37FDC.1010101@opencloud.com>
References: <d15ea14a0412051050399cd69b@mail.gmail.com> <41B37FDC.1010101@opencloud.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