Re: Dates rejected

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

Вложения

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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Dates rejected
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Dates rejected