Skip to content

Commit

Permalink
暂时移除新的脱敏方式 #1360
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo committed Mar 27, 2022
1 parent 99b1646 commit d41f64c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sql/engines/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from . import EngineBase
from .models import ResultSet, ReviewResult, ReviewSet
from sql.utils.data_masking import data_masking
from sql.utils.go_data_masking import go_data_masking
from common.config import SysConfig

logger = logging.getLogger('default')
Expand Down Expand Up @@ -340,7 +339,7 @@ def query_masking(self, db_name=None, sql='', resultset=None):
返回一个脱敏后的结果集"""
# 仅对select语句脱敏
if re.match(r"^select", sql, re.I):
mask_result = go_data_masking(self.instance, db_name, sql, resultset)
mask_result = data_masking(self.instance, db_name, sql, resultset)
else:
mask_result = resultset
return mask_result
Expand Down

0 comments on commit d41f64c

Please sign in to comment.