From: Oliver Jowett <oliver@opencloud.com>
To: Jie Liang <jie@stbernard.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Prepare Statement
Date: Sat, 19 Jun 2004 13:39:14 +1200
Message-ID: <40D39942.4010100@opencloud.com> (raw)
In-Reply-To: <E7E213858379814A9AE48CA6754F5ECB034519CB@mail01.stbernard.com>
References: <E7E213858379814A9AE48CA6754F5ECB034519CB@mail01.stbernard.com>
Jie Liang wrote:
> Nope, it will get same error msg:
> Myfunction(text) does net exist
Hm, indeed. I just looked at the code and the plain setObject() path
seems slightly broken: it always passes PG_TEXT, not the PGobject's type.
However, the setObject variant that takes a target SQL type seems ok.
Try this:
> stmt.setObject(1, obj, Types.OTHER);
-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, jie@stbernard.com, books@ejurka.com
Subject: Re: Prepare Statement
In-Reply-To: <40D39942.4010100@opencloud.com>
References: <E7E213858379814A9AE48CA6754F5ECB034519CB@mail01.stbernard.com> <40D39942.4010100@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