Re: Inconsistent Errors on Row Comparisons

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: pgsql-hackers Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Inconsistent Errors on Row Comparisons
Date: 2009-06-30 17:28:09
Message-ID: 20321.1246382889@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"David E. Wheeler" <david(at)kineticode(dot)com> writes:
> This is what I see. This query:

> VALUES (1, 2), (3, 4) EXCEPT VALUES (1, 'foo'), (3, 'bar');

> Throws 42804 DATATYPE MISMATCH.

Yeah ...

> Meanwhile, this query:

> 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

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2009-06-30 17:31:47 Re: Inconsistent Errors on Row Comparisons
Previous Message Tom Lane 2009-06-30 17:21:14 Re: 8.5 development schedule