home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!sungy!news.Sweden.Sun.COM!swippy!seunet!enea!sommar
- From: sommar@enea.se (Erland Sommarskog)
- Newsgroups: comp.databases.sybase
- Subject: Re: multiple EXISTS subqueries under Sybase 4.8
- Message-ID: <1992Nov18.223940.12209@enea.se>
- Date: 18 Nov 92 22:39:40 GMT
- References: <1992Nov15.225853.2269@lamont.ldgo.columbia.edu> <1e8fj7INN1sg@gazette.bcm.tmc.edu> <1992Nov16.184540.11698@lamont.ldgo.columbia.edu>
- Organization: Enea Data AB
- Lines: 20
-
- Hm, this discsussion reminds me of a bug that we've stumbled on.
- But our case was a bit simpler. Basically we had:
-
- SELECT ...
- WHERE a AND b AND (c1 OR c2) AND d AND E
-
- where a, b etc were various conditions. The query failed in some cases
- when c2 returned false, despite c1 being true. And, as you might have
- guessed c2 was an EXISTS or NOT EXISTS. Things went wrong when there
- were no records at all in the table searched by c2. I did also
- try IN with a subquery, that did also fail.
-
- Now what is interesting here is not the bug we had, but that the
- fact it is so similar to the bug originally reported here which
- was under 4.8, and we are still on 4.0.2 (AIX 3.1). I mean we
- didn't spend a time reporting something so obvious, when we
- have such an old version.
-
- --
- Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se
-