Re: Bug in 8.1.5: cannot add literal timestamp value and a interval.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug in 8.1.5: cannot add literal timestamp value and a interval.
Дата
Msg-id 18877.1161382631@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug in 8.1.5: cannot add literal timestamp value and a interval.  ("j.random.programmer" <javadesigner@yahoo.com>)
Список pgsql-bugs
"j.random.programmer" <javadesigner@yahoo.com> writes:
> This is a regression bug between 8.1.4 and 8.1.5

>   '2006-10-20 00:00:00' + interval '5' second

No, I don't think so.  Every PG release back to the beginning of time
will think that is an interval + interval addition.  That's one of the
system's basic heuristics for resolving the type of unmarked string
literals: if it's in a binary operator expression, assume it's the same as
the known type on the other side of the operator.  The only way it would
act differently would be if there was no interval + interval operator,
but one has existed since at least 7.0 (the oldest version I have handy
to check).

            regards, tom lane

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

Предыдущее
От: "j.random.programmer"
Дата:
Сообщение: Bug in 8.1.5: cannot add literal timestamp value and a interval.
Следующее
От: "Shutra"
Дата:
Сообщение: BUG #2708: Saving '\0' to bpchar by jdbc driver 8.1-407.jdbc3