home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.sybase
- Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!seunet!enea!sommar
- From: sommar@enea.se (Erland Sommarskog)
- Subject: Re: multiple EXISTS subqueries under Sybase 4.8
- Message-ID: <1992Nov20.213926.8828@enea.se>
- Organization: Enea Data AB
- References: <1e8fj7INN1sg@gazette.bcm.tmc.edu> <1992Nov16.184540.11698@lamont.ldgo.columbia.edu> <1992Nov18.223940.12209@enea.se>
- Date: Fri, 20 Nov 1992 21:39:26 GMT
- Lines: 19
-
- 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
-