Syntax question - compound value comparisons - Mailing list pgsql-general

From Richard Huxton
Subject Syntax question - compound value comparisons
Date
Msg-id 200404151954.12530.dev@archonet.com
Whole thread Raw
List pgsql-general
I can do this:

SELECT * FROM library_items WHERE (li_lib, li_item) = (11080,123063);
 li_lib | li_item
--------+---------
  11080 |  123063

But not this:

SELECT * FROM library_items WHERE (li_lib, li_item) IN ( (11080,123063),
(11081, 122250) );
ERROR:  syntax error at or near "11080" at character 59

Is this just a parser weakness (in which case, can I ask someone in core for a
TODO - tia) or is there some subtle reason why it isn't supposed to work.

--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: Andrew Ayers
Date:
Subject: Re: Basix for Data General / Basix for Sco Unix
Next
From: Joe Lester
Date:
Subject: Re: Optimal configuration to eliminate "out of file descriptors" error