mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved postgresql support, fix #3588
This commit is contained in:
@@ -282,10 +282,25 @@ public class PGExprParser extends SQLExprParser {
|
||||
|
||||
return primaryRest(extract);
|
||||
} else if (FnvHash.Constants.POINT == hash) {
|
||||
SQLExpr value = this.primary();
|
||||
PGPointExpr point = new PGPointExpr();
|
||||
point.setValue(value);
|
||||
return primaryRest(point);
|
||||
switch (lexer.token()) {
|
||||
case DOT:
|
||||
case EQ:
|
||||
case LTGT:
|
||||
case GT:
|
||||
case GTEQ:
|
||||
case LT:
|
||||
case LTEQ:
|
||||
case SUB:
|
||||
case PLUS:
|
||||
case SUBGT:
|
||||
lexer.nextToken();
|
||||
return primaryRest(identifierExpr);
|
||||
default:
|
||||
SQLExpr value = this.primary();
|
||||
PGPointExpr point = new PGPointExpr();
|
||||
point.setValue(value);
|
||||
return primaryRest(point);
|
||||
}
|
||||
} else if (FnvHash.Constants.BOX == hash) {
|
||||
SQLExpr value = this.primary();
|
||||
PGBoxExpr box = new PGBoxExpr();
|
||||
|
||||
Reference in New Issue
Block a user