[MDEV-16186] Concatenation operator || returns wrong results in sql_mode=ORACLE Created: 2018-05-16 Updated: 2018-10-04 Resolved: 2018-05-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.3.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
In Oracle, concatenation has the same priority with + (and lower than *).
In MariaDB, the concatenation operator || (with PIPES_AS_CONCAT enables) has higher priority over + and * and bit shift. This gives difference results in Oracle compatibility mode:
It should be fixed to produce Oracle compatible results when sql_mode=ORACLE is set. |