From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: tightening up on use of oid 0
Date: Sat, 09 Oct 2004 09:23:10 +1300
Message-ID: <4166F72E.9010201@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0410080828180.2827@leary.csoft.net>
References: <41660A56.5000107@opencloud.com>
<Pine.BSO.4.56.0410080828180.2827@leary.csoft.net>
Kris Jurka wrote:
>
> On Fri, 8 Oct 2004, Oliver Jowett wrote:
>
>>Executing "SELECT foo(?)" via PreparedStatement will work fine if you
>>pass a non-null PGline or PGbox argument to setObject, but if you try to
>>setNull() then you will get ambiguity between the two functions at
>>execution time.
>>
>>I can't see a way to fix this without a postgresql extension of some
>>sort. Options I can think of are:
>
>
> Can't the existing PGobject interface handle this. You can create a
> PGobject with the correct datatype and a null value and that should work.
OK, so getValue() and toString() return null?
This would still mean that setNull() would not work for Types.OTHER, though.
-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, books@ejurka.com
Subject: Re: tightening up on use of oid 0
In-Reply-To: <4166F72E.9010201@opencloud.com>
References: <41660A56.5000107@opencloud.com> <Pine.BSO.4.56.0410080828180.2827@leary.csoft.net> <4166F72E.9010201@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