mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-10411 Providing compatibility for basic PL/SQL constructs
Part 11: NULL as a statement
This commit is contained in:
@ -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/
|
||||
|
Reference in New Issue
Block a user