Below is the list of changes that have just been committed into a local
5.0 repository of gluh. When gluh does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.1850 05/04/04 15:21:28 gluh@stripped +2 -0
Bug #7214: information_schema: unauthorized user can see metadata(addon)
rename 'testtets' database to 'mysqltest' to keep number of
DBs which created by mysql-test as small as possible
mysql-test/t/information_schema.test
1.31 05/04/04 15:21:23 gluh@stripped +11 -11
Bug #7214: information_schema: unauthorized user can see metadata(addon)
mysql-test/r/information_schema.result
1.45 05/04/04 15:21:23 gluh@stripped +19 -19
Bug #7214: information_schema: unauthorized user can see metadata(addon)
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: gluh
# Host: eagle.intranet.mysql.r18.ru
# Root: /home/gluh/MySQL/Bugs/mysql-5.0.7214
--- 1.44/mysql-test/r/information_schema.result Fri Apr 1 14:27:36 2005
+++ 1.45/mysql-test/r/information_schema.result Mon Apr 4 15:21:23 2005
@@ -22,11 +22,11 @@
test
show databases where `database` = 't%';
Database
-create database testtets;
-create table testtets.t1(a int, b VARCHAR(30), KEY string_data (b));
+create database mysqltest;
+create table mysqltest.t1(a int, b VARCHAR(30), KEY string_data (b));
create table test.t2(a int);
create table t3(a int, KEY a_data (a));
-create table testtets.t4(a int);
+create table mysqltest.t4(a int);
create view v1 (c) as select table_name from information_schema.TABLES;
select * from v1;
c
@@ -62,11 +62,11 @@
time_zone_transition
time_zone_transition_type
user
+t1
+t4
t2
t3
v1
-t1
-t4
select c,table_name from v1
left join information_schema.TABLES v2 on (v1.c=v2.table_name)
where v1.c like "t%";
@@ -80,10 +80,10 @@
time_zone_name time_zone_name
time_zone_transition time_zone_transition
time_zone_transition_type time_zone_transition_type
-t2 t2
-t3 t3
t1 t1
t4 t4
+t2 t2
+t3 t3
select c, v2.table_name from v1
right join information_schema.TABLES v2 on (v1.c=v2.table_name)
where v1.c like "t%";
@@ -97,18 +97,18 @@
time_zone_name time_zone_name
time_zone_transition time_zone_transition
time_zone_transition_type time_zone_transition_type
-t2 t2
-t3 t3
t1 t1
t4 t4
+t2 t2
+t3 t3
select table_name from information_schema.TABLES
-where table_schema = "testtets" and table_name like "t%";
+where table_schema = "mysqltest" and table_name like "t%";
table_name
t1
t4
-select * from information_schema.STATISTICS where TABLE_SCHEMA = "testtets";
+select * from information_schema.STATISTICS where TABLE_SCHEMA = "mysqltest";
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
-NULL testtets t1 1 testtets string_data 1 b A NULL NULL NULL YES BTREE
+NULL mysqltest t1 1 mysqltest string_data 1 b A NULL NULL NULL YES BTREE
show keys from t3 where Key_name = "a_data";
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
t3 1 a_data 1 a A NULL NULL NULL YES BTREE
@@ -133,22 +133,22 @@
select * from information_schema.COLUMNS where table_name="t1"
and column_name= "a";
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT
-NULL testtets t1 a 1 NULL YES int 11 11 11 0 NULL NULL int(11) select,insert,update,references
-show columns from testtets.t1 where field like "%a%";
+NULL mysqltest t1 a 1 NULL YES int 11 11 11 0 NULL NULL int(11) select,insert,update,references
+show columns from mysqltest.t1 where field like "%a%";
Field Type Null Key Default Extra
a int(11) YES NULL
-grant select (a) on testtets.t1 to mysqltest_2@localhost;
+grant select (a) on mysqltest.t1 to mysqltest_2@localhost;
select table_name, column_name, privileges from information_schema.columns
-where table_schema = 'testtets' and table_name = 't1';
+where table_schema = 'mysqltest' and table_name = 't1';
table_name column_name privileges
t1 a select
-show columns from testtets.t1;
+show columns from mysqltest.t1;
Field Type Null Key Default Extra
a int(11) YES NULL
b varchar(30) YES MUL NULL
drop view v1;
-drop tables testtets.t4, testtets.t1, t2, t3;
-drop database testtets;
+drop tables mysqltest.t4, mysqltest.t1, t2, t3;
+drop database mysqltest;
select * from information_schema.CHARACTER_SETS
where CHARACTER_SET_NAME like 'latin1%';
CHARACTER_SET_NAME DEFAULT_COLLATE_NAME DESCRIPTION MAXLEN
--- 1.30/mysql-test/t/information_schema.test Fri Apr 1 14:27:36 2005
+++ 1.31/mysql-test/t/information_schema.test Mon Apr 4 15:21:23 2005
@@ -15,11 +15,11 @@
# Test for information_schema.tables &
# show tables
-create database testtets;
-create table testtets.t1(a int, b VARCHAR(30), KEY string_data (b));
+create database mysqltest;
+create table mysqltest.t1(a int, b VARCHAR(30), KEY string_data (b));
create table test.t2(a int);
create table t3(a int, KEY a_data (a));
-create table testtets.t4(a int);
+create table mysqltest.t4(a int);
create view v1 (c) as select table_name from information_schema.TABLES;
select * from v1;
select c,table_name from v1
@@ -31,9 +31,9 @@
where v1.c like "t%";
select table_name from information_schema.TABLES
-where table_schema = "testtets" and table_name like "t%";
+where table_schema = "mysqltest" and table_name like "t%";
-select * from information_schema.STATISTICS where TABLE_SCHEMA = "testtets";
+select * from information_schema.STATISTICS where TABLE_SCHEMA = "mysqltest";
show keys from t3 where Key_name = "a_data";
show tables like 't%';
@@ -44,19 +44,19 @@
show full columns from v1;
select * from information_schema.COLUMNS where table_name="t1"
and column_name= "a";
-show columns from testtets.t1 where field like "%a%";
+show columns from mysqltest.t1 where field like "%a%";
-grant select (a) on testtets.t1 to mysqltest_2@localhost;
+grant select (a) on mysqltest.t1 to mysqltest_2@localhost;
connect (user3,localhost,mysqltest_2,,);
connection user3;
select table_name, column_name, privileges from information_schema.columns
-where table_schema = 'testtets' and table_name = 't1';
-show columns from testtets.t1;
+where table_schema = 'mysqltest' and table_name = 't1';
+show columns from mysqltest.t1;
connection default;
drop view v1;
-drop tables testtets.t4, testtets.t1, t2, t3;
-drop database testtets;
+drop tables mysqltest.t4, mysqltest.t1, t2, t3;
+drop database mysqltest;
# Test for information_schema.CHARACTER_SETS &
# SHOW CHARACTER SET
| Thread |
|---|
| • bk commit into 5.0 tree (gluh:1.1850) BUG#7214 | gluh | 4 Apr |