~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/data_dictionary.test

Merged up with brian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
show create table GLOBAL_VARIABLES ;
70
70
show create table INDEXES ;
71
71
show create table INDEX_PARTS ;
 
72
show create table LOCAL_TABLE_NAMES;
72
73
show create table MODULES ;
73
74
show create table PLUGINS ;
74
75
show create table PROCESSLIST ;
75
76
show create table REFERENTIAL_CONSTRAINTS ;
76
77
show create table SCHEMAS ;
 
78
show create table SCHEMA_NAMES;
77
79
show create table SESSION_STATEMENTS;
78
80
show create table SESSION_STATUS;
79
81
show create table SESSION_VARIABLES;
80
82
show create table TABLES ;
81
83
show create table TABLE_CONSTRAINTS ;
82
84
 
 
85
# Test the behavior of LOCAL_TABLE_NAMES
 
86
select * from LOCAL_TABLE_NAMES;
 
87
 
83
88
 
84
89
# Slap tests for concurrency
85
90
CREATE SCHEMA drizzleslap;
99
104
--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="select * from data_dictionary.processlist" --delimiter=";"
100
105
--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="select * from data_dictionary.referential_constraints" --delimiter=";"
101
106
--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="select * from data_dictionary.schemas" --delimiter=";"
102
 
--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="select * from data_dictionary.table_constraints" --delimiter=";"
 
107
#--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="select * from data_dictionary.table_constraints" --delimiter=";"
103
108
--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="select * from data_dictionary.tables" --delimiter=";"
104
109
 
105
110
--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="SELECT a.VARIABLE_NAME FROM data_dictionary.GLOBAL_STATEMENTS as a, data_dictionary.GLOBAL_STATEMENTS as b ORDER BY VARIABLE_NAME" --delimiter=";"
106
111
--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="SELECT a.VARIABLE_NAME FROM data_dictionary.GLOBAL_STATUS as a, data_dictionary.GLOBAL_STATUS as b ORDER BY VARIABLE_NAME" --delimiter=";"
107
 
--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="SELECT a.VARIABLE_NAME FROM data_dictionary.GLOBAL_VARIABLES as a, data_dictionary.GLOBAL_VARIABLES as b ORDER BY VARIABLE_NAME" --delimiter=";"
 
112
--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="SELECT a.VARIABLE_NAME FROM data_dictionary.GLOBAL_VARIABLES as a, data_dictionary.GLOBAL_VARIABLES as b" --delimiter=";"
108
113
--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="SELECT a.VARIABLE_NAME FROM data_dictionary.SESSION_STATEMENTS as a, data_dictionary.SESSION_STATEMENTS as b ORDER BY VARIABLE_NAME" --delimiter=";"
109
114
--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="SELECT a.VARIABLE_NAME FROM data_dictionary.SESSION_STATUS as a, data_dictionary.SESSION_STATUS as b ORDER BY VARIABLE_NAME" --delimiter=";"
110
115
--exec $DRIZZLE_SLAP --silent  --concurrency=5 --iterations=20  --query="SELECT a.VARIABLE_NAME FROM data_dictionary.SESSION_VARIABLES as a, data_dictionary.SESSION_VARIABLES as b ORDER BY VARIABLE_NAME" --delimiter=";"
118
123
use A;
119
124
create table A (a int);
120
125
SELECT COUNT(*) FROM data_dictionary.tables WHERE TABLE_NAME = "A";
 
126
 
 
127
# Test the behavior of LOCAL_TABLE_NAMES
 
128
select * from data_dictionary.LOCAL_TABLE_NAMES;
 
129
 
121
130
DROP SCHEMA A;
122
131
 
123
132