Details
-
Technical task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.3(EOL), 10.4(EOL), 10.5
-
None
-
None
Description
A simple comment in the Code using “--” gives error while compiling the procedure if it has no spaces after the comment character!
--CONFLICT KITCHEN
Works fine when changed to MariaDB standard single line comment “#”
#--CONFLICT KITCHEN
Or adding a space after the “--” also works
– CONFLICT KITCHEN
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.