Re: [BUGS] BUG #3259: Problem with automatic string cast

2007-05-01 Thread Thomas Bley
Hello, MySQL 4.1 and Oracle 10g do the cast automatically, so I think the behavior should be changed if the SQL standards require it in this case. In general, it is confusing for programmers that 'years' has type unknown, 0 is integer, 0.5 is numeric, true is boolean, etc. Also I can imagine th

Re: [BUGS] BUG #3259: Problem with automatic string cast

2007-05-01 Thread Tom Lane
"Thomas" <[EMAIL PROTECTED]> writes: > select * from (select 'years' as recurrence) p where recurrence = 'years' > it gives: > ERROR: failed to find conversion function from "unknown" to text Try casting the unknown value to some specific type, eg regression=# select * from (select 'years'::text

[BUGS] BUG #3259: Problem with automatic string cast

2007-05-01 Thread Thomas
The following bug has been logged online: Bug reference: 3259 Logged by: Thomas Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.1 Operating system: WinXP SP2 Description:Problem with automatic string cast Details: I have this SQL: select * from (select 'ye