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:
@ -84,6 +84,9 @@ void run(TestConnections& test)
|
|||||||
// This should NOT go through as a function is used with a masked column.
|
// 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);
|
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
|
// This SHOULD go through as a function is NOT used with a masked column
|
||||||
// in a prepared statement.
|
// in a prepared statement.
|
||||||
test_one(test, "PREPARE ps1 FROM 'SELECT a, LENGTH(b) FROM masking_auto_firewall'", Expect::SUCCESS);
|
test_one(test, "PREPARE ps1 FROM 'SELECT a, LENGTH(b) FROM masking_auto_firewall'", Expect::SUCCESS);
|
||||||
|
|||||||
Reference in New Issue
Block a user