1 diff -r 0029211e0356 mysql-test/r/information_schema.result
2 --- a/mysql-test/r/information_schema.result Mon Sep 08 16:38:54 2008 -0700
3 +++ b/mysql-test/r/information_schema.result Mon Sep 08 16:39:00 2008 -0700
5 COLLATION_CHARACTER_SET_APPLICABILITY
25 TABLE_CONSTRAINTS TABLE_CONSTRAINTS
26 TABLE_PRIVILEGES TABLE_PRIVILEGES
27 +TABLE_STATISTICS TABLE_STATISTICS
29 tables_priv tables_priv
33 TABLE_CONSTRAINTS TABLE_CONSTRAINTS
34 TABLE_PRIVILEGES TABLE_PRIVILEGES
35 +TABLE_STATISTICS TABLE_STATISTICS
37 tables_priv tables_priv
41 TABLE_CONSTRAINTS TABLE_CONSTRAINTS
42 TABLE_PRIVILEGES TABLE_PRIVILEGES
43 +TABLE_STATISTICS TABLE_STATISTICS
45 tables_priv tables_priv
53 create database information_schema;
54 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
57 TABLE_CONSTRAINTS SYSTEM VIEW
58 TABLE_PRIVILEGES SYSTEM VIEW
59 +TABLE_STATISTICS SYSTEM VIEW
61 create table t1(a int);
62 ERROR 42S02: Unknown table 't1' in information_schema
69 select table_name from tables where table_name='user';
72 CREATE VIEW a1 (t_CRASHME) AS SELECT f1 FROM t_crashme GROUP BY f1;
73 CREATE VIEW a2 AS SELECT t_CRASHME FROM a1;
79 select table_schema,table_name, column_name from
81 TABLES TABLE_NAME select
82 TABLE_CONSTRAINTS TABLE_NAME select
83 TABLE_PRIVILEGES TABLE_NAME select
84 +TABLE_STATISTICS TABLE_NAME select
85 VIEWS TABLE_NAME select
86 delete from mysql.user where user='mysqltest_4';
87 delete from mysql.db where user='mysqltest_4';
89 SELECT table_schema, count(*) FROM information_schema.TABLES GROUP BY TABLE_SCHEMA;
91 -information_schema 16
92 +information_schema 19
94 create table t1 (i int, j int);
95 create trigger trg1 before insert on t1 for each row
97 COLLATION_CHARACTER_SET_APPLICABILITY COLLATION_NAME
99 COLUMN_PRIVILEGES TABLE_SCHEMA
100 +INDEX_STATISTICS INDEX_NAME
101 KEY_COLUMN_USAGE CONSTRAINT_SCHEMA
102 ROUTINES ROUTINE_SCHEMA
104 @@ -1198,8 +1209,10 @@
106 TABLE_CONSTRAINTS CONSTRAINT_SCHEMA
107 TABLE_PRIVILEGES TABLE_SCHEMA
108 +TABLE_STATISTICS TABLE_NAME
109 TRIGGERS TRIGGER_SCHEMA
110 USER_PRIVILEGES GRANTEE
111 +USER_STATISTICS USER
113 SELECT t.table_name, c1.column_name
114 FROM information_schema.tables t
115 @@ -1221,6 +1234,7 @@
116 COLLATION_CHARACTER_SET_APPLICABILITY COLLATION_NAME
118 COLUMN_PRIVILEGES TABLE_SCHEMA
119 +INDEX_STATISTICS INDEX_NAME
120 KEY_COLUMN_USAGE CONSTRAINT_SCHEMA
121 ROUTINES ROUTINE_SCHEMA
123 @@ -1229,8 +1243,10 @@
125 TABLE_CONSTRAINTS CONSTRAINT_SCHEMA
126 TABLE_PRIVILEGES TABLE_SCHEMA
127 +TABLE_STATISTICS TABLE_NAME
128 TRIGGERS TRIGGER_SCHEMA
129 USER_PRIVILEGES GRANTEE
130 +USER_STATISTICS USER
132 SELECT MAX(table_name) FROM information_schema.tables;
134 @@ -1303,6 +1319,7 @@
135 COLLATION_CHARACTER_SET_APPLICABILITY information_schema.COLLATION_CHARACTER_SET_APPLICABILITY 1
136 COLUMNS information_schema.COLUMNS 1
137 COLUMN_PRIVILEGES information_schema.COLUMN_PRIVILEGES 1
138 +INDEX_STATISTICS information_schema.INDEX_STATISTICS 1
139 KEY_COLUMN_USAGE information_schema.KEY_COLUMN_USAGE 1
140 ROUTINES information_schema.ROUTINES 1
141 SCHEMATA information_schema.SCHEMATA 1
142 @@ -1311,8 +1328,10 @@
143 TABLES information_schema.TABLES 1
144 TABLE_CONSTRAINTS information_schema.TABLE_CONSTRAINTS 1
145 TABLE_PRIVILEGES information_schema.TABLE_PRIVILEGES 1
146 +TABLE_STATISTICS information_schema.TABLE_STATISTICS 1
147 TRIGGERS information_schema.TRIGGERS 1
148 USER_PRIVILEGES information_schema.USER_PRIVILEGES 1
149 +USER_STATISTICS information_schema.USER_STATISTICS 1
150 VIEWS information_schema.VIEWS 1
151 create table t1(f1 int);
152 create view v1 as select f1+1 as a from t1;
153 diff -r 0029211e0356 mysql-test/r/information_schema_db.result
154 --- a/mysql-test/r/information_schema_db.result Mon Sep 08 16:38:54 2008 -0700
155 +++ b/mysql-test/r/information_schema_db.result Mon Sep 08 16:39:00 2008 -0700
157 COLLATION_CHARACTER_SET_APPLICABILITY
173 show tables from INFORMATION_SCHEMA like 'T%';
174 Tables_in_information_schema (T%)
180 create database `inf%`;
181 create database mbase;
182 diff -r 0029211e0356 mysql-test/r/mysqlshow.result
183 --- a/mysql-test/r/mysqlshow.result Mon Sep 08 16:38:54 2008 -0700
184 +++ b/mysql-test/r/mysqlshow.result Mon Sep 08 16:39:00 2008 -0700
186 | COLLATION_CHARACTER_SET_APPLICABILITY |
188 | COLUMN_PRIVILEGES |
189 +| INDEX_STATISTICS |
195 | TABLE_CONSTRAINTS |
197 +| TABLE_STATISTICS |
202 +---------------------------------------+
203 Database: INFORMATION_SCHEMA
205 | COLLATION_CHARACTER_SET_APPLICABILITY |
207 | COLUMN_PRIVILEGES |
208 +| INDEX_STATISTICS |
214 | TABLE_CONSTRAINTS |
216 +| TABLE_STATISTICS |
221 +---------------------------------------+
222 Wildcard: inf_rmation_schema