Dates rejected

Поиск
Список
Период
Сортировка
От Carlos H. Reimer
Тема Dates rejected
Дата
Msg-id PEEPKDFEHHEMKBBFPOOKMELFDFAA.carlos.reimer@opendb.com.br
обсуждение исходный текст
Ответы Re: Dates rejected  (Andreas Kretschmer <akretschmer@spamfence.net>)
Re: Dates rejected  (Martijn van Oosterhout <kleptog@svana.org>)
Список 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

 

В списке pgsql-general по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: ERROR: current transaction is aborted, commands ignored until end of transaction block
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Dates rejected