Re: Inconsistent Errors on Row Comparisons
- From: "David E. Wheeler" <david(at)kineticode(dot)com>
- To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
- Cc: pgsql-hackers Hackers <pgsql-hackers(at)postgresql(dot)org>
- Subject: Re: Inconsistent Errors on Row Comparisons
- Date: Tue, 30 Jun 2009 10:31:47 -0700
- Message-id: <4004417E-6A04-44FE-887E-E638C6180018@kineticode.com> <text/plain>
On Jun 30, 2009, at 10:28 AM, Tom Lane wrote:
VALUES (1, 2), (3, 4) EXCEPT VALUES (1), (3);
Throws 42601 SYNTAX ERROR.
Not for me:
regression=# VALUES (1, 2), (3, 4) EXCEPT VALUES (1), (3);
ERROR: each EXCEPT query must have the same number of columns
Turn on verbosity:
try=# \set VERBOSITY verbose
try=# VALUES (1, 2), (3, 4) EXCEPT VALUES (1), (3);
ERROR: 42601: each EXCEPT query must have the same number of columns
LOCATION: transformSetOperationTree, analyze.c:1502
42601 is a SYNTAX ERROR.
The inconsistency when comparing records from cursors stands, too.
Best,
David
Home |
Main Index |
Thread Index