diff options
author | unknown <holyfoot/hf@mysql.com/hfmain.(none)> | 2007-05-07 16:08:29 +0500 |
---|---|---|
committer | unknown <holyfoot/hf@mysql.com/hfmain.(none)> | 2007-05-07 16:08:29 +0500 |
commit | 3a04df06caaff7a0b58a1503f6294f15c7f38a63 (patch) | |
tree | f21cce5dad5cad700f3c13fbe1ad23a29966856d /mysql-test/t/outfile.test | |
parent | 632e03f86dbc4cdcfcefb42bc8d47f59cd2d882d (diff) | |
parent | e63cc253e2c0eb56c00d98dce583bb4d5baef49c (diff) | |
download | mariadb-git-3a04df06caaff7a0b58a1503f6294f15c7f38a63.tar.gz |
Merge bk@192.168.21.1:mysql-5.0
into mysql.com:/d2/hf/mrg/mysql-5.0-opt
sql/item_func.cc:
Auto merged
sql/item_func.h:
Auto merged
sql/mysql_priv.h:
Auto merged
Diffstat (limited to 'mysql-test/t/outfile.test')
-rw-r--r-- | mysql-test/t/outfile.test | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mysql-test/t/outfile.test b/mysql-test/t/outfile.test index 7c90fd32909..f285407efd4 100644 --- a/mysql-test/t/outfile.test +++ b/mysql-test/t/outfile.test @@ -96,3 +96,38 @@ create table t1(a int); eval select * into outfile "$MYSQL_TEST_DIR/outfile-test1" from t1; drop table t1; +# +# Bug#28181 Access denied to 'information_schema when +# select into out file (regression) +# +create database mysqltest; +create user user_1@localhost; +grant all on mysqltest.* to user_1@localhost; +connect (con28181_1,localhost,user_1,,mysqltest); + +--error 1044 +eval select schema_name +into outfile "../tmp/outfile-test.4" +fields terminated by ',' optionally enclosed by '"' + lines terminated by '\n' +from information_schema.schemata +where schema_name like 'mysqltest'; + +connection default; +grant file on *.* to user_1@localhost; + +connect (con28181_2,localhost,user_1,,mysqltest); +eval select schema_name +into outfile "../tmp/outfile-test.4" +fields terminated by ',' optionally enclosed by '"' + lines terminated by '\n' +from information_schema.schemata +where schema_name like 'mysqltest'; + +connection default; +--exec rm $MYSQLTEST_VARDIR/tmp/outfile-test.4 +use test; +revoke all privileges on *.* from user_1@localhost; +drop user user_1@localhost; +drop database mysqltest; + |