verifyParameters(sql,"userId","username","password","age","sex");
verifyColumns(sql,"user_id","username","password","BIRTH_DATE","age","sex");
}
public void test_聚合函数() throws SQLException, Exception {
Sql sql = parser.parseSql("select DISTINCT(count(*)) DISTINCT_count,count(username) cnt_username,sum(age) sum_age,avg(sex) avg_sex from user_info where user_id = ? and age = ? and password = ? and username like ? or (sex >= ?)");
verifyParameters(sql,"userId","username","password","age","sex");
verifyColumns(sql,"DISTINCT_count","cnt_username","sum_age","avg_sex");
}