assertStringEquals("select USER_ID,USERNAME,PASSWORD,BIRTH_DATE,SEX,AGE from user_info where user_id > #userId# and username < :username",sql.getIbatisSql());
assertStringEquals("select USER_ID,USERNAME,PASSWORD,BIRTH_DATE,SEX,AGE from user_info where user_id > #{userId} and username < :username",sql.getMybatisSql());
}
public void test_sql_function() throws SQLException, Exception {
Sql sql = parser.parseSql("select * from user_info where username = lower(#userId#) and username != :username");
verifyParameters(sql,"userId","username");
sql = parser.parseSql("select * from user_info where username = lower(?) and username != :username");
verifyNoParameters(sql,"userId");
verifyParameters(sql,"username");