Re: Huh? Data typing bug?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Huh? Data typing bug?
Дата
Msg-id 9352.991704311@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Huh? Data typing bug?  ("Josh Berkus" <josh@agliodbs.com>)
Ответы Re: Huh? Data typing bug?  ("Josh Berkus" <josh@agliodbs.com>)
Список pgsql-sql
"Josh Berkus" <josh@agliodbs.com> writes:
>     I just subtracted two dates and got an INT4, rather than the INTERVAL I
> was expecting.  What goes on here?

IIRC, number of days (as an int) is what that's supposed to produce.

If that's not what you wanted, maybe you ought to cast the dates to
timestamp or some such.
        regards, tom lane


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

Предыдущее
От: Grant
Дата:
Сообщение: Re: Huh? Data typing bug?
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: Huh? Data typing bug?