Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.3(EOL)
Description
In Oracle these keywords can be used in SP assignments:
- DO
- HANDLER
- REPAIR
- SHUTDOWN
- TRUNCATE
In MariaDB this script fails on syntax error:
SET sql_mode=ORACLE; |
DELIMITER /
|
|
DECLARE
|
DO INT; |
BEGIN
|
DO :=10;
|
END; |
/
|
|
DECLARE
|
HANDLER INT; |
BEGIN
|
HANDLER :=10;
|
END; |
/
|
|
DECLARE
|
REPAIR INT; |
BEGIN
|
REPAIR :=10;
|
END; |
/
|
|
DECLARE
|
SHUTDOWN INT; |
BEGIN
|
SHUTDOWN :=10;
|
END; |
/
|
|
DECLARE
|
TRUNCATE INT; |
BEGIN
|
TRUNCATE :=10; |
END; |
/
|
Attachments
Issue Links
- relates to
-
MDEV-10485 "Unreserve" MariaDB reserved keywords that are not reserved in the other databases
- Open
-
MDEV-16244 sql_mode=ORACLE: Some keywords do not work in variable declarations
- Closed
-
MDEV-16259 sql_mode=ORACLE: Keywords from keyword_sp_head do not work in assignments
- Open