Some basic datatypes and functions in oracle compatibility mode do not work
(MDEV-19162)
|
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.3, 10.4, 10.5 |
| Fix Version/s: | None |
| Type: | Technical task | Priority: | Major |
| Reporter: | Faisal Saeed (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | Compatibility | ||
| Description |
|
A simple comment in the Code using “--” gives error while compiling the procedure if it has no spaces after the comment character! |
| Comments |
| Comment by Michael Widenius [ 2020-05-19 ] |
|
I am not sure if this can be fixed as the – is ambiguous For example, this is valid SQL: SELECT 1--1; This is same as 1 - (-1) I think this is better to be changed in the application as SELECT 1 – 1 will work both for Oracle and MariaDB (adding space after--) and should be trivial to do. |