From: Oliver Jowett <oliver@opencloud.com>
To: pgsql-jdbc@postgresql.org
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Kris Jurka <books@ejurka.com>
Subject: Re: Can PostgreSQL do data type automated casting in
Date: Thu, 24 Nov 2005 18:36:24 +1300
Message-ID: <43855158.7050100@opencloud.com> (raw)
In-Reply-To: <438548DB.8070407@opencloud.com>
References: <200511211718.26679.xinxincute@gmail.com>
<Pine.BSO.4.61.0511211806430.23994@leary.csoft.net>
<1132616246.4154.10.camel@archimedes>
<6F909ADC-23ED-40CF-A2B5-41DE61606A26@fastcrypt.com>
<438548DB.8070407@opencloud.com>
Oliver Jowett wrote:
> I guess that we should tighten the checks in the query executor so that
> it will only consider types "compatible enough" if the new value is both
> of unspecified type *and* null?
With that change the test just fails differently:
ERROR: could not determine data type of parameter $1
since the test query ("SELECT ?") is actually one of the cases where
string-as-unspecified-type does not work.
I changed it to use a different query that still appears to exercise the
type-changing behaviour correctly ("SELECT CAST (? AS TEXT)") but
doesn't fail with a parameter of unspecified type.
-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, pg@fastcrypt.com, books@ejurka.com
Subject: Re: Can PostgreSQL do data type automated casting in
In-Reply-To: <43855158.7050100@opencloud.com>
References: <200511211718.26679.xinxincute@gmail.com> <Pine.BSO.4.61.0511211806430.23994@leary.csoft.net> <1132616246.4154.10.camel@archimedes> <6F909ADC-23ED-40CF-A2B5-41DE61606A26@fastcrypt.com> <438548DB.8070407@opencloud.com> <43855158.7050100@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