96
96
eval select * into outfile "$DRIZZLE_TEST_DIR/outfile-test1" from t1;
100
# Bug#28181 Access denied to 'information_schema when
101
# select into out file (regression)
103
create database mysqltest;
104
create user user_1@localhost;
105
grant all on mysqltest.* to user_1@localhost;
106
connect (con28181_1,localhost,user_1,,mysqltest);
108
--error ER_ACCESS_DENIED_ERROR
109
eval select schema_name
110
into outfile "../tmp/outfile-test.4"
111
fields terminated by ',' optionally enclosed by '"'
112
lines terminated by '\n'
113
from information_schema.schemata
114
where schema_name like 'mysqltest';
117
grant file on *.* to user_1@localhost;
119
connect (con28181_2,localhost,user_1,,mysqltest);
120
eval select schema_name
121
into outfile "../tmp/outfile-test.4"
122
fields terminated by ',' optionally enclosed by '"'
123
lines terminated by '\n'
124
from information_schema.schemata
125
where schema_name like 'mysqltest';
128
--exec rm $MYSQLTEST_VARDIR/tmp/outfile-test.4
130
revoke all privileges on *.* from user_1@localhost;
131
drop user user_1@localhost;
132
drop database mysqltest;