Received: from candle.pha.pa.us (maillist@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id UAA34136 for ; Tue, 27 Jul 1999 20:10:03 -0400 (EDT) (envelope-from maillist@candle.pha.pa.us) Received: (from maillist@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id UAA20176; Tue, 27 Jul 1999 20:09:07 -0400 (EDT) From: Bruce Momjian Message-Id: <199907280009.UAA20176@candle.pha.pa.us> Subject: Re: [SQL] WHERE parent IN (0,-1) In-Reply-To: <4.1.19990728114818.00a36030@pern.csarc.otago.ac.nz> from Drew Whittle at "Jul 28, 1999 11:51:48 am" To: Drew Whittle Date: Tue, 27 Jul 1999 20:09:07 -0400 (EDT) CC: pgsql-sql@postgreSQL.org X-Mailer: ELM [version 2.4ME+ PL56 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > Hi, > > I'm pretty new to Postgres, so please excuse my ignorance. > > I have a sql script that uses WHERE parent IN (0,-1), this works fine with > MySQL, Access, & MS-SQL Server, unfortunately Postgres does not like this > statement, I can get around the problem (I think) by using WHERE parent IN > (0,'-1'). > > Is this valid? > > Is there another way to do this that works with Postgres and the others? > (They dont like the ' around -1) > > Thanks, > > Drew > > > yes, that's a good workaround. Added to TODO list: * select * from pg_class where oid in (0,-1); -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026