Re: Datetime operators (was: Re: [SQL] Another Date question)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Datetime operators (was: Re: [SQL] Another Date question)
Дата
Msg-id 3219.944260558@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Datetime operators (was: Re: [SQL] Another Date question)  (<kaiq@realtyideas.com>)
Список pgsql-hackers
<kaiq@realtyideas.com> writes:
> why 
> create table mymy (mydate datetime default (now() + '60 days'::timespan )); 
> does not work?

I believe :: casts are broken in default expressions in 6.5.*.  They are
fixed in current sources (which is what Thomas probably tried) --- but
in the meantime, that expression will work fine without the cast...
        regards, tom lane


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

Предыдущее
От: Jeff Hoffmann
Дата:
Сообщение: Re: [HACKERS] Re: Geometric Data Type in PostgreSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions