MXS-2457 Add database firewall test

This commit is contained in:
Johan Wikman 2019-05-03 11:36:23 +03:00
parent a3cf1d22c0
commit e9144219f5
5 changed files with 13 additions and 2 deletions

View File

@ -0,0 +1,2 @@
SELECT CONCAT(x1) FROM t1;
SELECT CONCAT("x1") FROM t1;

View File

@ -1,3 +1,4 @@
update t1 set x1=1 where fl=0;
SELECT x1 FROM t1;
select t1.x1 as 'something' from t1 as t1 limit 1;
select t1.x1 as 'something' from t1 as t1 limit 1;
SELECT "x1" FROM t1;

View File

@ -0,0 +1,6 @@
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (x1 TEXT, x2 TEXT);
select sleep(5);
SELECT x1 FROM t1;
SELECT x2 FROM t1;
SELECT CONCAT(x2) FROM t1;

View File

@ -0,0 +1,2 @@
rule test19 match function concat columns x1
users %@% match any rules test19

View File

@ -44,7 +44,7 @@ int main(int argc, char* argv[])
Test->maxscales->access_homedir[0]);
sprintf(rules_dir, "%s/fw/", test_dir);
int N = 18;
int N = 19;
int i;
for (i = 1; i < N + 1; i++)