summaryrefslogtreecommitdiff
path: root/mysql-test/suite/galera/r/galera_create_procedure.result
blob: 98dc4a856dca2219e8754e5ea1816dfe9544fc3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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;