Re: current_timestamp without TZ in CREATE table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: current_timestamp without TZ in CREATE table
Дата
Msg-id 4681.1040109891@sss.pgh.pa.us
обсуждение исходный текст
Ответ на current_timestamp without TZ in CREATE table  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Список pgsql-general
Jean-Christian Imbeault <jc@mega-bucks.co.jp> writes:
> I get the following error while trying to create a table:
> JC=# create table test (t timestamp[0] default current_timestamp(0));
> ERROR:  Column "t" is of type timestamp without time zone[] but default
> expression is of type timestamp with time zone You will need to rewrite
> or cast the expression

Square brackets mean an array.  I think you meant timestamp(0).

            regards, tom lane

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

Предыдущее
От: Jean-Christian Imbeault
Дата:
Сообщение: current_timestamp without TZ in CREATE table
Следующее
От: Jean-Christian Imbeault
Дата:
Сообщение: Re: current_timestamp without TZ in CREATE table