Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > BUG #4085: No i...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 3677 of 3899
Post > Topic >>

BUG #4085: No implicit cast after coalesce

by jdwyer@[EMAIL PROTECTED] ("Jeff Dwyer") Apr 2, 2008 at 09:04 PM

The following bug has been logged online:

Bug reference:      4085
Logged by:          Jeff Dwyer
Email address:      jdwyer@[EMAIL PROTECTED]
 version: 8.3.1
Operating system:   Mac OS X
Description:        No implicit cast after coalesce
Details: 

This works fine:
select 1 where current_date between '1900-3-3' and '1900-2-2';
This doesn't:
select 1 where current_date between coalesce(null,current_date)  and
coalesce(null, '1900-1-2'); 

This fix works:
select 1 where current_date between coalesce(null,current_date)  and
coalesce(null, date('1900-1-2')); 


This seems like a bug to me. Why should an explicit cast be necessary
after
a coalesce? This broke code that worked in 8.1.

Thanks,
-Jeff

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 5 Posts in Topic:
BUG #4085: No implicit cast after coalesce
jdwyer@[EMAIL PROTECTED]   2008-04-02 21:04:22 
Re: BUG #4085: No implicit cast after coalesce
peter_e@[EMAIL PROTECTED]  2008-04-03 00:24:17 
Re: BUG #4085: No implicit cast after coalesce
tgl@[EMAIL PROTECTED] (T  2008-04-02 19:15:56 
Re: BUG #4085: No implicit cast after coalesce
jdwyer@[EMAIL PROTECTED]   2008-04-03 09:15:17 
Re: BUG #4085: No implicit cast after coalesce
sam@[EMAIL PROTECTED] (S  2008-04-03 19:57:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 17:25:03 CDT 2008.