Re: Dates rejected - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: Dates rejected
Date
Msg-id 20061016151724.GA8114@KanotixBox
Whole thread Raw
In response to Dates rejected  ("Carlos H. Reimer" <carlos.reimer@opendb.com.br>)
List pgsql-general
Carlos H. Reimer <carlos.reimer@opendb.com.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°

pgsql-general by date:

Previous
From: "Carlos H. Reimer"
Date:
Subject: Dates rejected
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Dates rejected