From: Matthew Bellew <matthew@bellew.net>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Inconsistent casting with literal vs parameter
Date: Tue, 07 Feb 2006 16:16:39 -0800
Message-ID: <43E93867.2050805@bellew.net> (raw)
In-Reply-To: <Pine.BSO.4.61.0602071901450.4552@leary.csoft.net>
References: <43E91EFA.4080106@bellew.net>
<Pine.BSO.4.61.0602071733300.5391@leary.csoft.net>
<43E9265E.3070209@bellew.net>
<43E9344C.2060805@bellew.net>
<Pine.BSO.4.61.0602071901450.4552@leary.csoft.net>
Right, I missed that.
My last 2 cents on the whole topic. There is a fundamental design issue
here with deciding to handle the expression /column <
(value/literal/parameter typed or not)/ by converting the column to a
string. Obviously, with INSERT INTO the data values must be coerced to
the destination column type. In this case, while there is a
parsing/optimizing decision to be made, it should be made with a strong
bias to convert to the column type (and then handling any tricky
coercion failures or optimization issues).
Again thanks for your help,
Matt
Kris Jurka wrote:
>
>
> On Tue, 7 Feb 2006, Matthew Bellew wrote:
>
>> JDBC Driver Version: PostgreSQL 8.1 JDBC3 with SSL (build 404)
>>
>> So, does this mean this parameter is not properly respected in the
>> driver?
>>
>
> Yes, this parameter is only available in the 8.2 driver.
>
> Kris Jurka
>
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: matthew@bellew.net, books@ejurka.com
Subject: Re: Inconsistent casting with literal vs parameter
In-Reply-To: <43E93867.2050805@bellew.net>
References: <43E91EFA.4080106@bellew.net> <Pine.BSO.4.61.0602071733300.5391@leary.csoft.net> <43E9265E.3070209@bellew.net> <43E9344C.2060805@bellew.net> <Pine.BSO.4.61.0602071901450.4552@leary.csoft.net> <43E93867.2050805@bellew.net>
* 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