Re: current_timestamp without TZ in CREATE table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: current_timestamp without TZ in CREATE table
Date: 2002-12-17 07:24:51
Message-ID: 4681.1040109891@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Christian Imbeault 2002-12-17 07:26:58 Re: current_timestamp without TZ in CREATE table
Previous Message Jean-Christian Imbeault 2002-12-17 07:04:24 current_timestamp without TZ in CREATE table