1
# - Check SHOW CREATE statement;
6
SHOW CREATE PROCEDURE p1|
8
SHOW CREATE PROCEDURE p2|
10
SHOW CREATE PROCEDURE mysqltest2.p3|
12
SHOW CREATE PROCEDURE mysqltest2.p4|
14
# - Check SHOW statement;
19
--replace_column 5 MODIFIED 6 CREATED
20
SHOW PROCEDURE STATUS LIKE 'p1'|
23
--replace_column 5 MODIFIED 6 CREATED
24
SHOW PROCEDURE STATUS LIKE 'p2'|
27
--replace_column 5 MODIFIED 6 CREATED
28
SHOW PROCEDURE STATUS LIKE 'p3'|
31
--replace_column 5 MODIFIED 6 CREATED
32
SHOW PROCEDURE STATUS LIKE 'p4'|
34
# - Check INFORMATION_SCHEMA;
39
--replace_column 23 CREATED 24 ALTERED
40
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'|
43
--replace_column 23 CREATED 24 ALTERED
44
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'|
47
--replace_column 23 CREATED 24 ALTERED
48
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'|
51
--replace_column 23 CREATED 24 ALTERED
52
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'|
54
# - Initialize the used variables (actual values don't matter);
62
# - Execute the routines;
68
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
73
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
77
CALL mysqltest2.p3(@a, @b)|
78
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
82
CALL mysqltest2.p4(@a, @b)|
83
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|