Re: Dates rejected - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Dates rejected
Date
Msg-id 20061016151711.GD23302@svana.org
Whole thread Raw
In response to Dates rejected  ("Carlos H. Reimer" <carlos.reimer@opendb.com.br>)
Responses Re: Dates rejected  (Andreas Kretschmer <akretschmer@spamfence.net>)
List pgsql-general
On Mon, Oct 16, 2006 at 12:22:04PM -0200, Carlos H. Reimer wrote:
> 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)));

What are you trying to do here? If you only want a date, why not just
use a date type?

Have you tried evaluating the expression yourself?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: Dates rejected
Next
From: Andreas Kretschmer
Date:
Subject: Re: Dates rejected