home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / ingres / 2176 < prev    next >
Encoding:
Text File  |  1993-01-07  |  2.7 KB  |  66 lines

  1. Newsgroups: comp.databases.ingres
  2. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!darwin.sura.net!uvaarpa!cv3.cv.nrao.edu!mail-to-news-gateway
  3. From: "Anthony J. Rzepela" <rzepela@hal.hahnemann.edu>
  4. Subject: Q: .RW spec finds no rows w/sent BETWEEN/IN clause
  5. Message-ID: <00966334.5A9D35E0.4200@hal.hahnemann.edu>
  6. Sender: root@nrao.edu (Operator)
  7. Organization: National Radio Astronomy Observatory
  8. Date: Wed, 6 Jan 1993 15:18:21 GMT
  9. Lines: 55
  10.  
  11. If someone could please help, it would be appreciated.  My patience
  12. is paper-thin at this point. 
  13.  
  14. setup:         Version 6.3/03 on VMS 5.4-2 (MicroVAX 3500)
  15.  
  16. Tool:       Report Writer
  17.  
  18. Statement:    seems that where clauses that use such predicates
  19.             as 'between' and 'in (itema,itemb,...)', while they work 
  20.             perfectly fine as a part of the .RW spec, bomb when the 
  21.             WHERE clause is sent as a replaceable parameter. 
  22.  
  23. Behaviour:      * No rows are found when a "WHERE column-name in 
  24.                   ('itema','itemb')" is sent to the report writer to be 
  25.                   substituted.
  26.                 * No rows are found when a "WHERE column-name between 
  27.                   itema and itemb" is sent to the report writer to be 
  28.                   substituted in the .QUERY statement. 
  29.  
  30.                 In *BOTH* cases, rows are found when the *same exact* 
  31.                 string, quotes and all, is embedded as part of the original 
  32.                 spec. 
  33.  
  34. Parameters:     Report has been attempted from both the CALL REPORT in 4GL, 
  35.                 or opsys command REPORT, with the clauses on the command
  36.                 line. 
  37.     
  38. did u check:
  39.  
  40. * quote stripping? 
  41.     
  42.      Yes.  I used the flag to force a report header to be printed on 
  43.      case of empty queries, and to print out what is sent as the 
  44.      WHERE clause.  There, staring me in the face, is my beautifully 
  45.      and carefully built clause, a clone of how it appears in my 
  46.      clause-inclusive version, but not finding a single f*cking row.   
  47.  
  48. * presence of data?
  49.  
  50.      Of course.
  51.  
  52. Sorry for the obscenity (or near-obscenity) but I tore out a lot of hair 
  53. and did a lot of revamping on the assumption that *I* was doing something
  54. wrong.  The only positive experience was that in the process of RTFM I 
  55. came across a Release Note on something unrelated that solved a different
  56. problem. 
  57.  
  58. If anything in the statement is unclear, please let me know.  I need this 
  59. problem resolved ASAP, and I made my ABF code such a mess in the 
  60. diagnostic process, I can't hand over the problem to even my best brain here. 
  61.  
  62. ----------------------------------------------
  63. Anthony Rzepela    <rzepela@cvi.hahnemann.edu>
  64. "What IS this fascination with Axl Rose? He looks so...unhealthy."  M.L.C. 1991
  65. -------------------
  66.