Re: BUG #3938: Row-wise comparison fails

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #3938: Row-wise comparison fails
Дата
Msg-id 20080207105924.GA26934@alvh.no-ip.org
обсуждение исходный текст
Ответ на BUG #3938: Row-wise comparison fails  ("" <cgriffo@practicepartner.com>)
Ответы Re: BUG #3938: Row-wise comparison fails  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
cgriffo@practicepartner.com wrote:

> The row-wise compare fails in the select statement below. This works in
> PostgreSQL 8.2 but fails in 8.3.

Confirmed here.

> SELECT * from test where (str1, str2, id) > ('a', '1', 0);

The error message is:

alvherre=# SELECT * from test where (str1, str2, id) > ('a', '1', 0);
ERREUR:  could not find member 4(25,25) of opfamily 426

Note that if I change the order of columns, it works:

alvherre=# SELECT * from test where (id,str1, str2) > (0,'a', '1');
 id | str1 | str2
----+------+------
  1 | a    | 1
  2 | b    | 2
(2 lignes)

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: BUG #3939: (Possibly) no NLS in 8.3 Windows
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] possible bug windows setup