Re: [HACKERS] Possible Typecasting Bug with coalesce()

2006-07-19 Thread MotherMGA
You are correct, Andreas. => select now()>'Jul 14 2006 9:16:47AM'; ?column? -- t (1 row) => select now() > CASE WHEN 'Jul 14 2006 9:16:47AM' IS NOT NULL THEN 'Jul 14 2006 9:16:47AM' END; ?column? -- f (1 row) I've also found that there must be more than one typecasting functi

[HACKERS] Possible Typecasting Bug with coalesce()

2006-07-18 Thread MotherMGA
Hello everyone, I found something that struck me as odd revolving around automatic typecasting and coalesce. It appears as though a timestamp will not automatically be cast to a timestamp if the timestamp is coalesced. Consider the following example: => select now()>'Jul 14 2006 9:16:47AM'; ?col