mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
61 lines
2.3 KiB
Text
61 lines
2.3 KiB
Text
connection node_2;
|
|
connection node_1;
|
|
connection node_1;
|
|
CREATE USER 'user1';
|
|
CREATE TABLE t1 (f1 INTEGER);
|
|
CREATE
|
|
DEFINER = 'user1'
|
|
PROCEDURE p1 (IN param1 INTEGER, OUT param2 INTEGER, INOUT param3 INTEGER)
|
|
COMMENT 'p1_comment'
|
|
LANGUAGE SQL
|
|
NOT DETERMINISTIC
|
|
MODIFIES SQL DATA
|
|
SQL SECURITY DEFINER
|
|
INSERT INTO t1 VALUES (1);
|
|
GRANT EXECUTE ON PROCEDURE p1 TO user1;
|
|
CREATE
|
|
DEFINER = CURRENT_USER
|
|
PROCEDURE p2 (param VARCHAR(100))
|
|
DETERMINISTIC
|
|
NO SQL
|
|
SQL SECURITY INVOKER BEGIN END ;
|
|
connection node_1;
|
|
SHOW CREATE PROCEDURE p1;
|
|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
|
p1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`user1`@`%` PROCEDURE `p1`(IN param1 INTEGER, OUT param2 INTEGER, INOUT param3 INTEGER)
|
|
MODIFIES SQL DATA
|
|
COMMENT 'p1_comment'
|
|
INSERT INTO t1 VALUES (1) latin1 latin1_swedish_ci latin1_swedish_ci
|
|
connection node_2;
|
|
SELECT 1 FROM DUAL;
|
|
1
|
|
1
|
|
SHOW CREATE PROCEDURE p1;
|
|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
|
p1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`user1`@`%` PROCEDURE `p1`(IN param1 INTEGER, OUT param2 INTEGER, INOUT param3 INTEGER)
|
|
MODIFIES SQL DATA
|
|
COMMENT 'p1_comment'
|
|
INSERT INTO t1 VALUES (1) latin1 latin1_swedish_ci latin1_swedish_ci
|
|
connection node_1;
|
|
SHOW CREATE PROCEDURE p2;
|
|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
|
p2 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(param VARCHAR(100))
|
|
NO SQL
|
|
DETERMINISTIC
|
|
SQL SECURITY INVOKER
|
|
BEGIN END latin1 latin1_swedish_ci latin1_swedish_ci
|
|
connection node_2;
|
|
SHOW CREATE PROCEDURE p2;
|
|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
|
p2 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(param VARCHAR(100))
|
|
NO SQL
|
|
DETERMINISTIC
|
|
SQL SECURITY INVOKER
|
|
BEGIN END latin1 latin1_swedish_ci latin1_swedish_ci
|
|
CALL p1(@a, @b, @c);
|
|
CALL p2('abc');
|
|
connection node_1;
|
|
DROP PROCEDURE p1;
|
|
DROP PROCEDURE p2;
|
|
DROP USER 'user1';
|
|
DROP TABLE t1;
|