Re: small bug in op + between datetime and integer

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: small bug in op + between datetime and integer
Дата
Msg-id 200308050509.h7559Lg25726@candle.pha.pa.us
обсуждение исходный текст
Ответ на small bug in op + between datetime and integer  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Список pgsql-bugs
I can verify this is an existing bug in CVS.

---------------------------------------------------------------------------

Pavel Stehule wrote:
> Hello
>
> It is maybe not bug, but I didn't find any warning about this behavior.
>
> select current_date + 1;  -- ok
> select 1 + current_date;  -- not
>
> ERROR:  operator does not exist: integer + date
> HINT:  No operator matches the given name and argument type(s). You may
> need to add explicit typecasts.
>
> I use CVS version of PostgreSQL from last week
>
> regards
>
> Pavel Stehule
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: "Eric Johnson"
Дата:
Сообщение: Re: Using contrib/fulltext on multiple tables.
Следующее
От: Philipp Reisner
Дата:
Сообщение: Re: Postgresql 7.3.3 crashing on query