BUG #3259: Problem with automatic string cast - Mailing list pgsql-bugs

From Thomas
Subject BUG #3259: Problem with automatic string cast
Date
Msg-id 200705011321.l41DLi2e048592@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #3259: Problem with automatic string cast  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      3259
Logged by:          Thomas
Email address:      thbley@gmail.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)

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #3258: Password fails, RPM installs in wrong directory
Next
From: Tom Lane
Date:
Subject: Re: BUG #3259: Problem with automatic string cast