Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group