Re: Dates rejected

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Dates rejected
Date: 2006-10-16 15:17:24
Message-ID: 20061016151724.GA8114@KanotixBox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Carlos H. Reimer <carlos(dot)reimer(at)opendb(dot)com(dot)br> schrieb:

>
> Hi,
>
> WeŽve a simple insert that is not working. The strange thing is that all kind
> of date are working with the exception of 15/10 (DD/MM) dates.
>
> create table tt_teste (datfis timestamp without time zone not null
> CHECK (datfis = trunc(datfis::timestamp without time zone)));
^^^^^

we don't have such a function, perhaps date_trunc()?

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2006-10-16 15:40:37 Re: Dates rejected
Previous Message Martijn van Oosterhout 2006-10-16 15:17:11 Re: Dates rejected