Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
dc292bc6
Commit
dc292bc6
authored
Aug 12, 2016
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-10411 Providing compatibility for basic PL/SQL constructs
Part 11: NULL as a statement
parent
0c9c4b84
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
mysql-test/suite/compat/oracle/r/sp.result
mysql-test/suite/compat/oracle/r/sp.result
+14
-0
mysql-test/suite/compat/oracle/t/sp.test
mysql-test/suite/compat/oracle/t/sp.test
+21
-0
sql/sql_yacc_ora.yy
sql/sql_yacc_ora.yy
+1
-0
No files found.
mysql-test/suite/compat/oracle/r/sp.result
View file @
dc292bc6
...
...
@@ -107,6 +107,20 @@ SELECT @p1;
@p1
p1new
DROP PROCEDURE p1;
# Testing that NULL is a valid statement
CREATE PROCEDURE p1(a INT) AS
BEGIN
NULL;
END;
/
DROP PROCEDURE p1;
CREATE PROCEDURE p1(a INT) AS
a INT:=10;
BEGIN
IF a=10 THEN NULL; ELSE NULL; END IF;
END;
/
DROP PROCEDURE p1;
# Testing that (some) keyword_sp are allowed in Oracle-style assignments
CREATE PROCEDURE p1 (action OUT INT) AS BEGIN action:=10; END;/
DROP PROCEDURE p1/
...
...
mysql-test/suite/compat/oracle/t/sp.test
View file @
dc292bc6
...
...
@@ -118,6 +118,27 @@ CALL p1(@p1);
SELECT
@
p1
;
DROP
PROCEDURE
p1
;
--
echo
# Testing that NULL is a valid statement
DELIMITER
/
;
CREATE
PROCEDURE
p1
(
a
INT
)
AS
BEGIN
NULL
;
END
;
/
DELIMITER
;
/
DROP
PROCEDURE
p1
;
DELIMITER
/
;
CREATE
PROCEDURE
p1
(
a
INT
)
AS
a
INT
:=
10
;
BEGIN
IF
a
=
10
THEN
NULL
;
ELSE
NULL
;
END
IF
;
END
;
/
DELIMITER
;
/
DROP
PROCEDURE
p1
;
--
echo
# Testing that (some) keyword_sp are allowed in Oracle-style assignments
DELIMITER
/
;
CREATE
PROCEDURE
p1
(
action
OUT
INT
)
AS
BEGIN
action
:=
10
;
END
;
/
...
...
sql/sql_yacc_ora.yy
View file @
dc292bc6
...
...
@@ -2879,6 +2879,7 @@ sp_proc_stmt:
| sp_proc_stmt_open
| sp_proc_stmt_fetch
| sp_proc_stmt_close
| NULL_SYM { }
;
sp_proc_stmt_compound_ok:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment