sql parser direct support OVER

This commit is contained in:
wenshao
2012-11-21 23:37:18 +08:00
parent 04321df02c
commit 96c1950a8d
19 changed files with 270 additions and 233 deletions
@@ -94,4 +94,16 @@ public class SQLServerExprParser extends SQLExprParser {
return super.nameRest(expr);
}
public boolean isAggreateFunction(String word) {
String[] aggregateFunctions = { "AVG", "COUNT", "MAX", "MIN", "ROW_NUMBER", "STDDEV", "SUM" };
for (int i = 0; i < aggregateFunctions.length; ++i) {
if (aggregateFunctions[i].compareToIgnoreCase(word) == 0) {
return true;
}
}
return false;
}
}