MXS-1307 Grant statements excluded
MaxScale does not need to fully parse grant statements. Hence they are commented out from cte_grant.test.
This commit is contained in:
@ -22,8 +22,9 @@ insert into mysqltest.t1 values (2,10), (1,30);
|
||||
create table mysqltest.t2 (c int, d char(32));
|
||||
insert into mysqltest.t2 values (1,'xxx'), (1,'zzz');
|
||||
|
||||
grant select on mysqltest.t1 to mysqltest_1@localhost;
|
||||
grant select (c) on mysqltest.t2 to mysqltest_1@localhost;
|
||||
# qc_sqlite: Does not parse all grant statements
|
||||
#grant select on mysqltest.t1 to mysqltest_1@localhost;
|
||||
#grant select (c) on mysqltest.t2 to mysqltest_1@localhost;
|
||||
|
||||
connection user1;
|
||||
with t as (select c from mysqltest.t2 where c < 2)
|
||||
@ -45,9 +46,10 @@ create view mysqltest.v2(c,d) as
|
||||
with t as (select a from mysqltest.t1 where a>=3)
|
||||
select t.a,b from t,mysqltest.t1 where mysqltest.t1.a = t.a;
|
||||
|
||||
grant select on mysqltest.v1 to mysqltest_1@localhost;
|
||||
grant select (c) on mysqltest.v2 to mysqltest_1@localhost;
|
||||
grant create view on mysqltest.* to mysqltest_1@localhost;
|
||||
# qc_sqlite: Does not parse all grant statements
|
||||
#grant select on mysqltest.v1 to mysqltest_1@localhost;
|
||||
#grant select (c) on mysqltest.v2 to mysqltest_1@localhost;
|
||||
#grant create view on mysqltest.* to mysqltest_1@localhost;
|
||||
|
||||
connection user1;
|
||||
|
||||
@ -69,11 +71,13 @@ select d from mysqltest.v2;
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
select * from mysqltest.v3;
|
||||
connection root;
|
||||
grant select on mysqltest.v3 to mysqltest_1@localhost;
|
||||
# qc_sqlite: Does not parse all grant statements
|
||||
#grant select on mysqltest.v3 to mysqltest_1@localhost;
|
||||
connection user1;
|
||||
select * from mysqltest.v3;
|
||||
|
||||
connection root;
|
||||
revoke all privileges on mysqltest.v1 from mysqltest_1@localhost;
|
||||
# qc_sqlite: Does not parse all revoke statements
|
||||
#revoke all privileges on mysqltest.v1 from mysqltest_1@localhost;
|
||||
drop user mysqltest_1@localhost;
|
||||
drop database mysqltest;
|
Reference in New Issue
Block a user