MXS-2396 Reject use of masked var in variable definition
E.g. set @a = (SELECT fld FROM table); will be rejected if 'fld' is a field that should be masked.
This commit is contained in:
@ -106,6 +106,10 @@ void run(TestConnections& test)
|
||||
// This should NOT succeed as a function is used with a masked column
|
||||
// in a binary prepared statement.
|
||||
test_one_ps(test, "SELECT LENGTH(a), b FROM masking_auto_firewall", Expect::FAILURE);
|
||||
|
||||
// This should NOT succeed as a masked column is used in a statement
|
||||
// defining a variable.
|
||||
test_one(test, "set @a = (SELECT a, b FROM masking_auto_firewall)", Expect::FAILURE);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user