~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
#   - Check SHOW CREATE statement;
2
3
--echo
4
--echo
5
6
SHOW CREATE PROCEDURE p1|
7
--echo
8
SHOW CREATE PROCEDURE p2|
9
--echo
10
SHOW CREATE PROCEDURE mysqltest2.p3|
11
--echo
12
SHOW CREATE PROCEDURE mysqltest2.p4|
13
14
#   - Check SHOW statement;
15
16
--echo
17
--echo
18
19
--replace_column 5 MODIFIED 6 CREATED
20
SHOW PROCEDURE STATUS LIKE 'p1'|
21
22
--echo
23
--replace_column 5 MODIFIED 6 CREATED
24
SHOW PROCEDURE STATUS LIKE 'p2'|
25
26
--echo
27
--replace_column 5 MODIFIED 6 CREATED
28
SHOW PROCEDURE STATUS LIKE 'p3'|
29
30
--echo
31
--replace_column 5 MODIFIED 6 CREATED
32
SHOW PROCEDURE STATUS LIKE 'p4'|
33
34
#   - Check INFORMATION_SCHEMA;
35
36
--echo
37
--echo
38
39
--replace_column 23 CREATED 24 ALTERED
40
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'|
41
42
--echo
43
--replace_column 23 CREATED 24 ALTERED
44
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'|
45
46
--echo
47
--replace_column 23 CREATED 24 ALTERED
48
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'|
49
50
--echo
51
--replace_column 23 CREATED 24 ALTERED
52
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'|
53
54
#   - Initialize the used variables (actual values don't matter);
55
56
--echo
57
--echo
58
59
SET @a = '1'|
60
SET @b = '2'|
61
62
#   - Execute the routines;
63
64
--echo
65
--echo
66
67
CALL p1(@a, @b)|
68
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
69
70
--echo
71
72
CALL p2(@a, @b)|
73
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
74
75
--echo
76
77
CALL mysqltest2.p3(@a, @b)|
78
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|
79
80
--echo
81
82
CALL mysqltest2.p4(@a, @b)|
83
SELECT COLLATION(@a) AS ca, COLLATION(@b) cb|