MXS-1733 Add test for revealing the problem

This commit is contained in:
Johan Wikman
2018-03-21 20:06:44 +02:00
parent 48e2b50e68
commit 7be6f52d4a
3 changed files with 37 additions and 0 deletions

View File

@ -39,6 +39,15 @@
"value": "01234-BCD",
"fill": "X#@"
}
},
{
"replace": {
"table": "masking_mxs1733",
"column": "email"
},
"with": {
"fill": "*"
}
}
]
}

View File

@ -0,0 +1,11 @@
drop database if exists maskingdb;
create database maskingdb;
use maskingdb;
create table masking_mxs1733 (email TEXT);
insert into masking_mxs1733 values ("john@example.com");
select * from masking_mxs1733;
email
****************
select * from masking_mxs1733 UNION select * from masking_mxs1733;
email
****************

View File

@ -0,0 +1,17 @@
#
# MXS-1733
#
# See ../masking_rules.json
--disable_warnings
drop database if exists maskingdb;
--enable_warnings
create database maskingdb;
use maskingdb;
create table masking_mxs1733 (email TEXT);
insert into masking_mxs1733 values ("john@example.com");
select * from masking_mxs1733;
select * from masking_mxs1733 UNION select * from masking_mxs1733;