MXS-1733 Add test for revealing the problem
This commit is contained in:
@ -39,6 +39,15 @@
|
|||||||
"value": "01234-BCD",
|
"value": "01234-BCD",
|
||||||
"fill": "X#@"
|
"fill": "X#@"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"replace": {
|
||||||
|
"table": "masking_mxs1733",
|
||||||
|
"column": "email"
|
||||||
|
},
|
||||||
|
"with": {
|
||||||
|
"fill": "*"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
****************
|
@ -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;
|
Reference in New Issue
Block a user