mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
+10
-1
@@ -40,7 +40,16 @@ public class SQLServerExprParser extends SQLExprParser {
|
||||
public final static long[] AGGREGATE_FUNCTIONS_CODES;
|
||||
|
||||
static {
|
||||
String[] strings = { "AVG", "COUNT", "MAX", "MIN", "ROW_NUMBER", "STDDEV", "SUM" };
|
||||
String[] strings = {
|
||||
"AVG",
|
||||
"COUNT",
|
||||
"FIRST_VALUE",
|
||||
"MAX",
|
||||
"MIN",
|
||||
"ROW_NUMBER",
|
||||
"STDDEV",
|
||||
"SUM"
|
||||
};
|
||||
AGGREGATE_FUNCTIONS_CODES = FnvHash.fnv1a_64_lower(strings, true);
|
||||
AGGREGATE_FUNCTIONS = new String[AGGREGATE_FUNCTIONS_CODES.length];
|
||||
for (String str : strings) {
|
||||
|
||||
Reference in New Issue
Block a user