bug? incorrect return type from extract

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема bug? incorrect return type from extract
Дата
Msg-id Pine.LNX.4.44.0307280710490.19383-100000@kix.fsv.cvut.cz
обсуждение исходный текст
Ответы Re: bug? incorrect return type from extract  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hello

Is correct so extract(day from current_date) return double? I need
explicit cast for this expression

current_date - extract(day from current_date) + 1 -- don't work

ERROR:  operator does not exist: date - double precision
HINT:  No operator matches the given name and argument type(s). You may
need to add explicit typecasts.

why? I have cvs PostgreSQL updated 23.7.

regards,
Pavel Stehule


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

Предыдущее
От: "LitelWang"
Дата:
Сообщение: Re: unicode char order
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [ANNOUNCE] v7.3.4 Bug Fix Release