improved postgresql sql parser support. support Array Operators. issue #1391

This commit is contained in:
wenshao
2016-09-19 15:06:35 +08:00
parent 3902b8c30a
commit 5f8ca5937c
7 changed files with 196 additions and 6 deletions
@@ -63,6 +63,8 @@ public enum SQLBinaryOperator {
POSIX_Regular_Match_Insensitive("~*", 110),
POSIX_Regular_Not_Match("!~", 110),
POSIX_Regular_Not_Match_POSIX_Regular_Match_Insensitive("!~*", 110),
Array_Contains("@>", 110),
Array_ContainedBy("<@", 110),
RLike("RLIKE", 110),
NotRLike("NOT RLIKE", 110),
@@ -82,7 +84,9 @@ public enum SQLBinaryOperator {
BooleanAnd("AND", 140),
BooleanXor("XOR", 150),
BooleanOr("OR", 160),
Assignment(":=", 169)
Assignment(":=", 169),
PG_And("&&", 140),
;
public static int getPriority(SQLBinaryOperator operator) {