Search Postgresql Archives

Dates rejected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux