Re: Possible Typecasting Bug with coalesce()

Поиск
Список
Период
Сортировка
От MotherMGA
Тема Re: Possible Typecasting Bug with coalesce()
Дата
Msg-id 1153314264.683591.284130@m73g2000cwd.googlegroups.com
обсуждение исходный текст
Ответ на Re: Possible Typecasting Bug with coalesce()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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 function
being used because the result can be different depending on the format
of the timestamp string:

=> select now()>coalesce('Jul 14 2006 9:16:47AM');?column?
----------f
(1 row)

=> select now()>coalesce('2006-07-14 9:16:47');?column?
----------t
(1 row)



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: plPHP and plRuby
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_regress breaks on msys