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

comparing rows

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: comparing rows
Date: 2000-08-03 01:09:07
Message-ID: (view raw or whole thread)
Lists: pgsql-hackers
Can anyone explain the ERROR below? Is this a bug or a feature?
This is 7.0.2.

test=# select (1,2,3) = (1,2,3);
(1 row)

test=# select (1,2,3) = (1,2,9);
(1 row)

test=# select (1,2,3) = (1,2,null);
(1 row)

test=# select (1,2,null) = (1,2,null);
ERROR:  Unable to identify an operator '=' for types 'unknown' and 'unknown'
	You will have to retype this query using an explicit cast
Tatsuo Ishii


pgsql-hackers by date

Next:From: Tom LaneDate: 2000-08-03 01:36:38
Subject: Re: comparing rows
Previous:From: Tom LaneDate: 2000-08-02 20:36:20
Subject: Re: [HACKERS] random() function produces wrong range

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