On Wed, May 22, 2002 at 03:40:34PM -0400, Ray Denenberg wrote:
> "LeVan,Ralph" wrote:
>
> > I'm not sure what the parens around the index+term does. I haven't noticed
> > any claims of ambiguity there.
>
> Someone (Alan, I think) mentioned the possibility of including "and" in the
> term. The quotes around the term might be enough, though.
Yes, quotes are enough.
Also CCL has parenthesis already (and it is useful), but it was designed
to change operator precedence, not release reserved words.
(title=me and) or (title=mine)
is a syntax error because "and" is a resrved word.
> But in addition, though nobody mentioned it, what's the implied precedence in
> a query like "a OR b AND c"?
I think its a matter of definition. ISO8777 says left to right binding,
which is contradictory to every other definition of AND and OR I have
ever seen. Maybe its just my programming background, but I normally
think of AND being tighter binding than OR, and if you don't like it,
use parenthesis.
Alan
|