MXS-2788 Add test that reveals problem

String comparison when checking whether a columns should be masked
is made in a case-insensitive way.
This commit is contained in:
Johan Wikman
2019-12-05 13:00:45 +02:00
parent 4f91d8aa77
commit 694c0e784b

View File

@ -84,6 +84,9 @@ void run(TestConnections& test)
// This should NOT go through as a function is used with a masked column.
test_one(test, "SELECT LENGTH(a), b FROM masking_auto_firewall", Expect::FAILURE);
// This should NOT go through as a function is used with a masked column (that happens to be uppercase).
test_one(test, "SELECT LENGTH(A), b FROM masking_auto_firewall", Expect::FAILURE);
// This SHOULD go through as a function is NOT used with a masked column
// in a prepared statement.
test_one(test, "PREPARE ps1 FROM 'SELECT a, LENGTH(b) FROM masking_auto_firewall'", Expect::SUCCESS);