MXS-1311: Add tests for keywords as function parameters
The dbfwfilter tests now test the function type rule with keywords as parameters.
This commit is contained in:
parent
d47e32966f
commit
26f8f9d869
@ -8,3 +8,5 @@ select * from test.t1 where 1 >= 1;
|
||||
select * from test.t1 where 1 <= 1;
|
||||
select * from test.t1 where 1 != 1;
|
||||
select * from test.t1 where 1 <> 1;
|
||||
select function(*) from test.t1;
|
||||
select insert(*) from test.t1;
|
||||
|
@ -3,3 +3,4 @@ create function my_function (arg int) returns int deterministic return arg * arg
|
||||
select "sum(1)";
|
||||
select (1);
|
||||
select * from(select 1) as a;
|
||||
insert into test.t1 values (1);
|
||||
|
@ -1,4 +1,5 @@
|
||||
rule test1 deny function sum avg on_queries select
|
||||
rule test2 deny function my_function on_queries select
|
||||
rule test3 deny function = >= <= != <> on_queries select
|
||||
users %@% match any rules test1 test2 test3
|
||||
rule test4 deny function `function` `insert`
|
||||
users %@% match any rules test1 test2 test3 test4
|
||||
|
Loading…
x
Reference in New Issue
Block a user