Bug #30526 | Manual, Precedence of XOR | ||
---|---|---|---|
Submitted: | 21 Aug 2007 2:21 | Modified: | 7 Sep 2007 2:09 |
Reporter: | Marc ALFF | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[21 Aug 2007 2:21]
Marc ALFF
[21 Aug 2007 7:37]
Sveta Smirnova
Thank you for the report. Verified as described.
[4 Sep 2007 22:26]
Marc ALFF
See the parser_precedence.test tests cases, for operator precedence. In the 5.0 manual and above, XOR should be in a line by itself, between OR and AND: OR has a lesser precedence that XOR, which has a lesser precedence that AND Also, note that listing "||" as the same precedence as "OR" is incorrect: this might not be the case depending on SQL_MODE PIPE_AS_CONCAT
[7 Sep 2007 2:09]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products. Updated the precedence of XOR. Also noted the change in precedence for || if PIPES_AS_CONCAT is enabled.