Re: possible wierd boolean bug?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: possible wierd boolean bug?
Date: 2004-12-15 21:03:33
Message-ID: 8115.1103144613@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com> writes:
> Anyways, it would be nice to be able to use the sql row constructor to
> do equality/comparison...wouldn't get caught writing such silly sql
> statements :)

You mean like this?

regression=# select row(1,2,3) = row(1,2,3);
?column?
----------
t
(1 row)

regression=# select row(1,2,3) = row(1,2,4);
?column?
----------
f
(1 row)

The semantics aren't right yet for non-equality comparisons, but it
works fine for = and != ...

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-12-15 21:05:36 race condition for drop schema cascade?
Previous Message Merlin Moncure 2004-12-15 20:50:50 Re: possible wierd boolean bug?