You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importcom.alibaba.druid.sql.visitor.ParameterizedOutputVisitorUtils;
importcom.alibaba.druid.util.JdbcConstants;
Stringsql = "select id from t where id = 3 /*!30000union all select 2*/";
Stringpsql = ParameterizedOutputVisitorUtils.parameterize(sql, JdbcConstants.MYSQL);
Assert.assertEquals("SELECT id"//
+ "\nFROM t"//
+ "\nWHERE id = ?/*!30000union all select 2*/", psql);