From: | "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net> |
---|---|
To: | Gregory Stark <stark(at)enterprisedb(dot)com> |
Cc: | PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Blowback from text conversion changes |
Date: | 2007-06-25 17:14:24 |
Message-ID: | 20070625131424.0b7201a7.darcy@druid.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, 25 Jun 2007 17:56:28 +0100
Gregory Stark <stark(at)enterprisedb(dot)com> wrote:
>
> This seems odd. It's not deciding that it's ambiguous or coming from another
> datatype for which no implicit cast exists. It knows perfectly well that it
> wants to convert to text but fails?
>
>
> postgres=# select 'a'||b from (select 'b' as b) as x;
> ERROR: failed to find conversion function from unknown to text
It isn't the destination type that is the problem here but the source.
I suppose that it could default 'b' to text but really, that isn't
necessarily what '' signifies. How about '2007-06-25'? Is that text,
date or timestamp? Try this.
select 'a'||b from (select 'b'::text as b) as x;
--
D'Arcy J.M. Cain <darcy(at)druid(dot)net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-06-25 17:29:53 | Re: Blowback from text conversion changes |
Previous Message | Andrew Sullivan | 2007-06-25 17:02:13 | Re: Bugtraq: Having Fun With PostgreSQL |