Bug#18474 Unlistable directories yield no info from information_schema, part2
- Move "chmod" part of information_schema test to separate file mysql-test/r/information_schema.result: Move "chmod" part of information_schema test to separate file mysql-test/t/information_schema.test: Move "chmod" part of information_schema test to separate file mysql-test/r/information_schema_chmod.result: Move "chmod" part of information_schema test to separate file mysql-test/t/information_schema_chmod.test: Move "chmod" part of information_schema test to separate file
This commit is contained in:
parent
9da29acc31
commit
0c7aa68d2a
@ -1083,11 +1083,6 @@ DROP TABLE t1;
|
|||||||
DROP VIEW v1;
|
DROP VIEW v1;
|
||||||
DROP FUNCTION func1;
|
DROP FUNCTION func1;
|
||||||
DROP FUNCTION func2;
|
DROP FUNCTION func2;
|
||||||
create database mysqltest;
|
|
||||||
create table mysqltest.t1(a int);
|
|
||||||
select table_schema from information_schema.tables where table_schema='mysqltest';
|
|
||||||
table_schema
|
|
||||||
drop database mysqltest;
|
|
||||||
select column_type, group_concat(table_schema, '.', table_name), count(*) as num
|
select column_type, group_concat(table_schema, '.', table_name), count(*) as num
|
||||||
from information_schema.columns where
|
from information_schema.columns where
|
||||||
table_schema='information_schema' and
|
table_schema='information_schema' and
|
||||||
|
5
mysql-test/r/information_schema_chmod.result
Normal file
5
mysql-test/r/information_schema_chmod.result
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
create database mysqltest;
|
||||||
|
create table mysqltest.t1(a int);
|
||||||
|
select table_schema from information_schema.tables where table_schema='mysqltest';
|
||||||
|
table_schema
|
||||||
|
drop database mysqltest;
|
@ -793,15 +793,6 @@ DROP VIEW v1;
|
|||||||
DROP FUNCTION func1;
|
DROP FUNCTION func1;
|
||||||
DROP FUNCTION func2;
|
DROP FUNCTION func2;
|
||||||
|
|
||||||
#
|
|
||||||
# Bug #15851 Unlistable directories yield no info from information_schema
|
|
||||||
#
|
|
||||||
create database mysqltest;
|
|
||||||
create table mysqltest.t1(a int);
|
|
||||||
--exec chmod -r $MYSQLTEST_VARDIR/master-data/mysqltest
|
|
||||||
select table_schema from information_schema.tables where table_schema='mysqltest';
|
|
||||||
--exec chmod +r $MYSQLTEST_VARDIR/master-data/mysqltest
|
|
||||||
drop database mysqltest;
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Bug#15307 GROUP_CONCAT() with ORDER BY returns empty set on information_schema
|
# Bug#15307 GROUP_CONCAT() with ORDER BY returns empty set on information_schema
|
||||||
|
20
mysql-test/t/information_schema_chmod.test
Normal file
20
mysql-test/t/information_schema_chmod.test
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#
|
||||||
|
# Due to "Bug#18474 Unlistable directories yield no info from
|
||||||
|
# information_schema, part2" this test can't be run on Window with our
|
||||||
|
# current test framework. When "chmod -r" is done within cygwin the
|
||||||
|
# MySQL Server can still read the directory.
|
||||||
|
# Manual testing shows the functionalty to skip unlistable directories
|
||||||
|
# works on windows
|
||||||
|
#
|
||||||
|
--source include/not_windows.inc
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #15851 Unlistable directories yield no info from information_schema
|
||||||
|
#
|
||||||
|
create database mysqltest;
|
||||||
|
create table mysqltest.t1(a int);
|
||||||
|
--exec chmod -r $MYSQLTEST_VARDIR/master-data/mysqltest
|
||||||
|
select table_schema from information_schema.tables where table_schema='mysqltest';
|
||||||
|
--exec chmod +r $MYSQLTEST_VARDIR/master-data/mysqltest
|
||||||
|
drop database mysqltest;
|
Loading…
x
Reference in New Issue
Block a user