| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | cgriffo(at)practicepartner(dot)com |
| Cc: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | Re: BUG #3938: Row-wise comparison fails |
| Date: | 2008-02-07 10:59:24 |
| Message-ID: | 20080207105924.GA26934@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
cgriffo(at)practicepartner(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew Dunstan | 2008-02-07 11:12:17 | Re: [HACKERS] possible bug windows setup |
| Previous Message | Magnus Hagander | 2008-02-07 10:14:27 | Re: BUG #3939: (Possibly) no NLS in 8.3 Windows |