home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / sybase / 373 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.3 KB  |  30 lines

  1. Newsgroups: comp.databases.sybase
  2. Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!seunet!enea!sommar
  3. From: sommar@enea.se (Erland Sommarskog)
  4. Subject: Re: multiple EXISTS subqueries under Sybase 4.8
  5. Message-ID: <1992Nov20.213926.8828@enea.se>
  6. Organization: Enea Data AB
  7. References: <1e8fj7INN1sg@gazette.bcm.tmc.edu> <1992Nov16.184540.11698@lamont.ldgo.columbia.edu> <1992Nov18.223940.12209@enea.se>
  8. Date: Fri, 20 Nov 1992 21:39:26 GMT
  9. Lines: 19
  10.  
  11. Hm, this discsussion reminds me of a bug that we've stumbled on.
  12. But our case was a bit simpler. Basically we had:
  13.  
  14.      SELECT ...
  15.      WHERE  a AND b AND (c1 OR c2) AND d AND E
  16.  
  17. where a, b etc were various conditions. The query failed in some cases
  18. when c2 returned false, despite c1 being true. And, as you might have
  19. guessed c2 was an EXISTS or NOT EXISTS. Things went wrong when there
  20. were no records at all in the table searched by c2. I did also
  21. try IN with a subquery, that did also fail.
  22.  
  23. Now what is interesting here is not the bug we had, but that the
  24. fact it is so similar to the bug originally reported here which
  25. was under 4.8, and we are still on 4.0.2 (AIX 3.1). I mean we
  26. didn't spend a time reporting something so obvious, when we
  27. have such an old version.
  28. -- 
  29. Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se
  30.