To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96086
                 Issue #|96086
                 Summary|connectivity: ambiguous && || sequence
               Component|Database access
                 Version|DEV300m35
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|none
             Assigned to|fs
             Reported by|cmc





------- Additional comments from [EMAIL PROTECTED] Tue Nov 11 10:22:46 +0000 
2008 -------
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.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to