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