BUG #3259: Problem with automatic string cast

From: "Thomas" <thbley(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #3259: Problem with automatic string cast
Date: 2007-05-01 13:21:44
Message-ID: 200705011321.l41DLi2e048592@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 3259
Logged by: Thomas
Email address: thbley(at)gmail(dot)com
PostgreSQL version: 8.2.1
Operating system: WinXP SP2
Description: Problem with automatic string cast
Details:

I have this SQL:

select * from (select 'years' as recurrence) p where recurrence = 'years'

it gives:

ERROR: failed to find conversion function from "unknown" to text SQL state:
XX000

but this one is ok:

select * from (select 'years' as recurrence union select 'years' as
recurrence) p where recurrence='years'

it gives:

recurrence text
'years'

this is a default installation with the binaries from postgresql.org with no
changes in the configs:
PostgreSQL 8.2.1 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.4.2
(mingw-special)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2007-05-01 14:36:23 Re: BUG #3259: Problem with automatic string cast
Previous Message Tom Lane 2007-04-30 16:58:39 Re: BUG #3258: Password fails, RPM installs in wrong directory