Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit will promote the priority of the || operator to the front of the + - * / mod operators. It solves the problems 2.1 that mentioned at issue #2396 . For problem at 2.2 in issue #2396 , it is actually the same problem mentioned in issue #2142 . As it said in pr #2398 before, the influence of modifying that logic will cause semantic errors in insert and load, so this commit will left the bug unsolved temporary. appendix: In Mysql 5.7.27 || and | select 23|1||7; 23 select (23|1)||7 237 select 23|(1||7) 23 Priority : || > | || and & select 10&1||7; 0 select (10&1)||7 7 select 10&(1||7) 0 Priority : || > & || and ^ select 10^1||7 27 select (10^1)||7 117 select 10^(1||7) 27 Priority : || > ^ || and ~ select ~1||7 184467440737095516147 select ~(1||7) 18446744073709551598 priority : || < ~
- Loading branch information