I submitted a patch for OODT-333, but also filed OODT-334. A fix for 334 could potentially affect backwards compatibility for XMLQuery. The workaround is to always group your criteria and put RETURNs at the end. Since this workaround is sufficient for now, I'll hold off on this issue until the PMC's can comment on the correct syntax.
Thanks, Ricky On Oct 13, 2011, at 11:01 AM, Nguyen, Ricky wrote: > Filed OODT-333 > https://issues.apache.org/jira/browse/OODT-333 > > On Oct 13, 2011, at 10:53 AM, Sean Kelly wrote: > >>> Theoretically, could we also do this?: >>> RETURN = foo AND (foo = 'yes' OR bar = 'no') AND RETURN = bar >> >> I haven't looked at the code in a while (and I tend to drink heavily ^_^) >> but I believe that should be valid, yielding: >> >> - A constraint of "foo = 'yes' or bar = 'no'" >> - A range of 'foo', 'bar'. >> >> --k >> > > > > > --------------------------------------------------------------------- > CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, > is for the sole use of the intended recipient(s) and may contain confidential > or legally privileged information. Any unauthorized review, use, disclosure > or distribution is prohibited. If you are not the intended recipient, please > contact the sender by reply e-mail and destroy all copies of this original > message. > > --------------------------------------------------------------------- > --------------------------------------------------------------------- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or legally privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of this original message. ---------------------------------------------------------------------
