| От | Tom Lane |
|---|---|
| Тема | Re: timestamp handling in postgres 7.1 behaves strange |
| Дата | |
| Msg-id | 21149.997323293@sss.pgh.pa.us обсуждение |
| Ответ на | timestamp handling in postgres 7.1 behaves strange (pgsql-bugs@postgresql.org) |
| Список | pgsql-bugs |
pgsql-bugs@postgresql.org writes:
> this works:
> select timestamp (content) from factversionelement where factid=100311 and elementname='newsdate';
> timestamp
> ------------------------
> 2010-01-02 16:00:00+01
> (1 row)
> this does not:
> select factid from factversionelement where factid=100311 and elementname='newsdate' and timestamp (content) >=
'2001-08-08';
> ERROR: Bad timestamp external representation 'm'
What this looks like to me is that you have some row in the table that
has content = 'm' rather than a valid timestamp representation, but
does not have (both) factid=100311 and elementname='newsdate'. You
cannot assume that the WHERE clauses are evaluated in any particular
order.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера