From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | "Carlos H(dot) Reimer" <carlos(dot)reimer(at)opendb(dot)com(dot)br> |
Cc: | "Pgsql-General(at)Postgresql(dot)Org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Dates rejected |
Date: | 2006-10-16 15:17:11 |
Message-ID: | 20061016151711.GD23302@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Kretschmer | 2006-10-16 15:17:24 | Re: Dates rejected |
Previous Message | Adrian Suciu | 2006-10-16 15:10:18 | Real time query analyzer |