Commit 868afddb by 郑冰晶

数据库加密组件

parent dde084f5
...@@ -417,7 +417,7 @@ public class SecurityFilter extends FilterEventAdapter { ...@@ -417,7 +417,7 @@ public class SecurityFilter extends FilterEventAdapter {
columnName = sqlIdentifierExpr.getName(); columnName = sqlIdentifierExpr.getName();
}else if(column instanceof SQLPropertyExpr){// a.name = ? 或 t_user.name = ? 或 secooAbcDB.t_user.name = ?(不考虑) }else if(column instanceof SQLPropertyExpr){// a.name = ? 或 t_user.name = ? 或 secooAbcDB.t_user.name = ?(不考虑)
SQLPropertyExpr sqlPropertyExpr = (SQLPropertyExpr) column; SQLPropertyExpr sqlPropertyExpr = (SQLPropertyExpr) column;
if(sqlPropertyExpr.getResolvedOwnerObject() != null){ if(sqlPropertyExpr.getResolvedOwnerObject() != null){// 只处理column.getOwner()为SQLIdentifierExpr的情况
tableName = sqlPropertyExpr.getResolvedOwnerObject().toString(); tableName = sqlPropertyExpr.getResolvedOwnerObject().toString();
columnName = sqlPropertyExpr.getName(); columnName = sqlPropertyExpr.getName();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment