Apache OpenOffice (AOO) Bugzilla – Issue 96086
connectivity: ambiguous && || sequence
Last modified: 2009-03-23 14:04:53 UTC
X && Y || Z binds operator precedence-wise as (X && Y) || Z not X && (Y || Z) i.e. connectivity/source/parse/sqlnode.cxx has else if(bNegate && SQL_ISRULE(pSearchCondition,comparison_predicate) || SQL_ISRULE(pSearchCondition,all_or_any_predicate)) which equates to else if((bNegate && SQL_ISRULE(pSearchCondition,comparison_predicate)) || SQL_ISRULE(pSearchCondition,all_or_any_predicate)) which kind of looks suspicious, should it be else if(bNegate && (SQL_ISRULE(pSearchCondition,comparison_predicate) || SQL_ISRULE(pSearchCondition,all_or_any_predicate))) ? I kind of suspect should be, patch attached to do that.
Created attachment 57867 [details] suspicious code
fs->oj: please check
Patch applied in cws dba31f. Thanks.
Please verify. Thanks.
patch made it into CWS => VERIFIED
closing, in master