| From: | "Carlos H(dot) Reimer" <carlos(dot)reimer(at)opendb(dot)com(dot)br> |
|---|---|
| To: | "Pgsql-General(at)Postgresql(dot)Org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Dates rejected |
| Date: | 2006-10-16 14:22:04 |
| Message-ID: | PEEPKDFEHHEMKBBFPOOKMELFDFAA.carlos.reimer@opendb.com.br |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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)));
INSERT INTO tt_teste (datfis)
VALUES (
to_date('15/10/2006','DD/MM/YYYY')
);
ERROR: new row for relation "tt_teste" violates check constraint
"tt_teste_datfis_check"
I´ll appreciate any help!
Thanks in advance!
Carlos Reimer
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adrian Suciu | 2006-10-16 15:10:18 | Real time query analyzer |
| Previous Message | Martijn van Oosterhout | 2006-10-16 14:19:02 | Re: ERROR: current transaction is aborted, commands ignored until end of transaction block |