Re: Possible Typecasting Bug with coalesce()

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas DCP SD
Тема Re: Possible Typecasting Bug with coalesce()
Дата
Msg-id E1539E0ED7043848906A8FF995BDA579012B442E@m0143.s-mxs.net
обсуждение исходный текст
Ответ на Re: Possible Typecasting Bug with coalesce()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > => select now()>coalesce('Jul 14 2006 9:16:47AM');

> The only bug I see here is that implicit coercions to text
> are a bad idea :-( --- IMHO it would be better if your first
> query failed instead of giving you unexpected behavior.

:-) We know that you think that Tom, but a lot of us do not
want to go casting all our sql, especially where other db's don't
require it.

Would an equivalent CASE statement also do the early conversion to text
?

Andreas


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: [PATCHES] pg_regress in C
Следующее
От: "Zeugswetter Andreas DCP SD"
Дата:
Сообщение: Re: [SQL] using constraint based paritioning to fix EAV type schemas? (view inheritance and constraints)