Re: display to_timestamp in quotas or convert to char ?

Поиск
Список
Период
Сортировка
От Scott Ribe
Тема Re: display to_timestamp in quotas or convert to char ?
Дата
Msg-id CA0B2CA1-D2CB-490C-A394-8D3BC376A59A@elevated-dev.com
обсуждение исходный текст
Ответ на Re: display to_timestamp in quotas or convert to char ?  (czezz <czezz@o2.pl>)
Ответы Re: display to_timestamp in quotas or convert to char ?
Список pgsql-admin
On May 5, 2015, at 8:21 AM, czezz <czezz@o2.pl> wrote:
>
> This is because this query is executed/hardcoded in application.
> And by executing it like this I can prove devs that there is a problem.

So you were really looking for an explanation of why it didn’t work, in order to pass along to people whom you’re
havingtrouble convincing? OK, didn’t get that from your post, now it makes sense. It just seemed odd that you seemed to
beignoring the most correct (and easy) solution ;-) 

Anyway, now the we understand that… PostgreSQL used to be more aggressive about automatically casting text types to
morespecific types. I suspect, though I don’t recall for sure, that this query would have worked on some earlier
versions.Later versions removed some of the automatic casting, because it was found that those casts caused
problems—thatsometimes they would cause accidental type mismatches to be executed instead of flagged, and produce
incorrectresults instead of an error message, so the decision was made that if you want to compare mismatched types,
youhave to be explicit about it. 

--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice







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

Предыдущее
От: czezz
Дата:
Сообщение: Re: display to_timestamp in quotas or convert to char ?
Следующее
От: czezz
Дата:
Сообщение: Re: display to_timestamp in quotas or convert to char ?