From cb6f3ac71cb07470cdd3090aacb7f7d42f2db99b Mon Sep 17 00:00:00 2001 From: wenshao Date: Mon, 13 Jan 2025 10:09:33 +0800 Subject: [PATCH] fix pg parser --- .../sql/dialect/postgresql/parser/PGSQLStatementParser.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java b/core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java index 731c07d317..e88cda94f1 100644 --- a/core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java +++ b/core/src/main/java/com/alibaba/druid/sql/dialect/postgresql/parser/PGSQLStatementParser.java @@ -893,6 +893,9 @@ public SQLStatement parseSet() { } // skip comma lexer.nextToken(); + if (lexer.token() == SEMI) { + break; + } } }