Re: Empty date
| От | Bruno Wolff III |
|---|---|
| Тема | Re: Empty date |
| Дата | |
| Msg-id | 20050403143826.GA30342@wolff.to обсуждение исходный текст |
| Ответ на | Re: Empty date (Karsten Hilbert <Karsten.Hilbert@gmx.net>) |
| Ответы |
Re: Empty date
|
| Список | pgsql-general |
On Sun, Apr 03, 2005 at 15:46:18 +0200,
Karsten Hilbert <Karsten.Hilbert@gmx.net> wrote:
> > > type <date>" or some such. However the best would be to use
> > > "-infinity".
> >
> > +/- infinity are only available as timestamps, not dates.
> Hm, any particular reason why ? Apart from no one having
> gotten around to doing it...
I think that is it. I seem to remember a discussion of that about 2 or 3
years ago, but nothing came of it.
> Strange enough, on 7.4.6 I am unsure as to how to interpret
> the output of:
>
> select ('2000-10-10'::date < 'infinity'::timestamp::date);
>
> ?column?
> ----------
>
> (1 row)
>
> Further testing shows it seems to be of type boolean. Is it
> NULL ? Coalesce did not help.
area=> select 'infinity'::timestamp::date is null;
?column?
----------
t
(1 row)
В списке pgsql-general по дате отправления: