~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/information_schema.test

  • Committer: Brian Aker
  • Date: 2008-08-19 15:11:04 UTC
  • mfrom: (327.2.6 drizzle-good)
  • Revision ID: brian@gir.tangent.org-20080819151104-uxk5lgoaj0fwgx9z
Merge of Brian's tree to main tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
--enable_warnings
11
11
 
12
12
 
13
 
show variables where variable_name like "skip_show_database";
14
 
 
15
 
 
16
13
select * from information_schema.SCHEMATA where schema_name > 'm';
17
14
select schema_name from information_schema.schemata;
18
15
show databases like 't%';
19
16
show databases;
20
 
show databases where `database` = 't%';
21
17
 
22
18
# Test for information_schema.tables &
23
19
# show tables
34
30
where table_schema = "mysqltest" and table_name like "t%";
35
31
 
36
32
select * from information_schema.STATISTICS where TABLE_SCHEMA = "mysqltest";
37
 
show keys from t3 where Key_name = "a_data";
38
33
 
39
34
show tables like 't%';
40
35
--replace_column 8 # 12 # 13 #
42
37
show full columns from t3 like "a%";
43
38
select * from information_schema.COLUMNS where table_name="t1"
44
39
and column_name= "a";
45
 
show columns from mysqltest.t1 where field like "%a%";
46
40
 
47
41
connect (user3,localhost,mysqltest_2,,);
48
42
connection user3;
62
56
select * from information_schema.CHARACTER_SETS
63
57
where CHARACTER_SET_NAME like 'latin1%';
64
58
SHOW CHARACTER SET LIKE 'latin1%';
65
 
SHOW CHARACTER SET WHERE charset like 'latin1%';
66
59
 
67
60
# Test for information_schema.COLLATIONS &
68
61
# SHOW COLLATION
72
65
where COLLATION_NAME like 'latin1%';
73
66
--replace_column 5 #
74
67
SHOW COLLATION LIKE 'latin1%';
75
 
--replace_column 5 #
76
 
SHOW COLLATION WHERE collation like 'latin1%';
77
68
 
78
69
select * from information_schema.COLLATION_CHARACTER_SET_APPLICABILITY
79
70
where COLLATION_NAME like 'latin1%';
99
90
select table_type from information_schema.tables
100
91
where table_schema="mysql" and table_name="user";
101
92
 
102
 
# test for 'show open tables ... where'
103
 
show open tables where `table` like "user";
104
 
# test for 'show status ... where'
105
 
show status where variable_name like "%database%";
106
 
# test for 'show variables ... where'
107
 
show variables where variable_name like "skip_show_databas";
108
 
 
109
93
#
110
94
# Bug #7981:SHOW GLOBAL STATUS crashes server
111
95
#
191
175
drop table t1;
192
176
 
193
177
#
194
 
# Bug #12636: SHOW TABLE STATUS with where condition containing a subquery
195
 
#             over information schema
196
 
#
197
 
 
198
 
CREATE TABLE t1 (a int);
199
 
CREATE TABLE t2 (b int);
200
 
 
201
 
--replace_column 8 # 12 # 13 #
202
 
SHOW TABLE STATUS FROM test
203
 
  WHERE name IN ( SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES
204
 
                    WHERE TABLE_SCHEMA='test' AND TABLE_TYPE='BASE TABLE');
205
 
 
206
 
DROP TABLE t1,t2;
207
 
 
208
 
#
209
178
# Bug #9846 Inappropriate error displayed while dropping table from 'INFORMATION_SCHEMA'
210
179
#
211
180
--error ER_PARSE_ERROR