mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for pg sql parser.
This commit is contained in:
+20
-1
@@ -292,8 +292,27 @@ public class PGSQLStatementParser extends SQLStatementParser {
|
||||
statementList.add(parseWith());
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
||||
if (lexer.identifierEquals(FnvHash.Constants.CONNECT)) {
|
||||
SQLStatement stmt = parseConnectTo();
|
||||
statementList.add(stmt);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public SQLStatement parseConnectTo() {
|
||||
acceptIdentifier("CONNECT");
|
||||
accept(Token.TO);
|
||||
|
||||
PGConnectToStatement stmt = new PGConnectToStatement();
|
||||
SQLName target = this.exprParser.name();
|
||||
stmt.setTarget(target);
|
||||
|
||||
return stmt;
|
||||
}
|
||||
|
||||
public PGSelectStatement parseSelect() {
|
||||
|
||||
Reference in New Issue
Block a user