diff --git a/maxscale-system-test/fw/deny19 b/maxscale-system-test/fw/deny19 new file mode 100644 index 000000000..38771d22a --- /dev/null +++ b/maxscale-system-test/fw/deny19 @@ -0,0 +1,2 @@ +SELECT CONCAT(x1) FROM t1; +SELECT CONCAT("x1") FROM t1; \ No newline at end of file diff --git a/maxscale-system-test/fw/deny3 b/maxscale-system-test/fw/deny3 index 0c5f68f1a..5ac12cac6 100644 --- a/maxscale-system-test/fw/deny3 +++ b/maxscale-system-test/fw/deny3 @@ -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; \ No newline at end of file +select t1.x1 as 'something' from t1 as t1 limit 1; +SELECT "x1" FROM t1; diff --git a/maxscale-system-test/fw/pass19 b/maxscale-system-test/fw/pass19 new file mode 100644 index 000000000..60f69d18e --- /dev/null +++ b/maxscale-system-test/fw/pass19 @@ -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; diff --git a/maxscale-system-test/fw/rules19 b/maxscale-system-test/fw/rules19 new file mode 100644 index 000000000..7c67d8c3b --- /dev/null +++ b/maxscale-system-test/fw/rules19 @@ -0,0 +1,2 @@ +rule test19 match function concat columns x1 +users %@% match any rules test19 diff --git a/maxscale-system-test/fwf.cpp b/maxscale-system-test/fwf.cpp index af7cd6f1a..c20618d4b 100644 --- a/maxscale-system-test/fwf.cpp +++ b/maxscale-system-test/fwf.cpp @@ -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++)