Subject: Re: CAL-QUERY definition

From: Mark Davidson <[email-masked]>
Date: Tue, 03 Sep 2002 13:33:46 +0100

I just noticed another problem in the CAL-QUERY definition (in the snapshot).

In:

              cap-factor  = cap-colval SP cap-oper SP col-value
                          / cap-colval SP "NOT LIKE" SP col-value
                          / cap-colval SP "LIKE" SP col-value
                          / cap-colval SP "IS NULL"
                          / cap-colval SP "IS NOT NULL"
                          / col-value SP "NOT IN" cap-colval"
                          / col-value SP "IN" cap-colval"

              cap-colval     = cap-col
                          / "PARAM(" cap-col "," cap-param ")"

              cap-param   = ; Any parameter that may be contained in the cap-col
                            ; in the supplied PARAM() function

              col-value   = col-literal
                          / "STATE()"
                          / "SELF()"
                          / "CAL-OWNERS()"
                          / "CAL-OWNERS(" cal-address ")"
                          / "CURRENT-TARGET()"

STATE() should not be a col-value, it should be a cap-colval.(You don't do =STATE() you
use STATE()= )

So:
              cap-factor  = cap-colval SP cap-oper SP col-value
                          / cap-colval SP "NOT LIKE" SP col-value
                          / cap-colval SP "LIKE" SP col-value
                          / cap-colval SP "IS NULL"
                          / cap-colval SP "IS NOT NULL"
                          / col-value SP "NOT IN" cap-colval"
                          / col-value SP "IN" cap-colval"

              cap-colval     = cap-col
                          / "STATE()"
                          / "PARAM(" cap-col "," cap-param ")"

              cap-param   = ; Any parameter that may be contained in the cap-col
                            ; in the supplied PARAM() function

              col-value   = col-literal
                          / "SELF()"
                          / "CAL-OWNERS()"
                          / "CAL-OWNERS(" cal-address ")"
                          / "CURRENT-TARGET()"

Also the example just before the definition has:

          (a) SELECT VEVENT.<a-property-name> FROM VEVENT

           shouldn't this be

          (a) SELECT <a-property-name> FROM VEVENT

Mark Davidson