improve JdbcUtils, support Sqlite

This commit is contained in:
wenshao
2013-02-05 16:27:59 +08:00
parent 7f700a2ade
commit 6a36004991
2 changed files with 25 additions and 7 deletions
@@ -30,6 +30,18 @@ public class PGExprParser extends SQLExprParser {
public PGExprParser(Lexer lexer){
super(lexer);
}
public boolean isAggreateFunction(String word) {
String[] aggregateFunctions = { "AVG", "COUNT", "MAX", "MIN", "STDDEV", "SUM", "ROW_NUMBER" };
for (int i = 0; i < aggregateFunctions.length; ++i) {
if (aggregateFunctions[i].compareToIgnoreCase(word) == 0) {
return true;
}
}
return false;
}
@Override
public PGOrderBy parseOrderBy() {