Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ go.work.sum
# Editor/IDE
.idea/

# Plguin
# Plugin
# Intellij ANTLR plugin
**/gen/
# VSCode ANTLR plugin
**/.antlr/

# ANTLR generated files
**/*.interp
Expand Down
2 changes: 1 addition & 1 deletion postgresql/PostgreSQLParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -2813,7 +2813,7 @@ opt_hold
;
/*
TODO: why select_with_parens alternative is needed at all?
i guess it because original byson grammar can choose selectstmt(2)->select_with_parens on only OPEN_PARENT/SELECT kewords at the begining of statement;
i guess it because original bison grammar can choose selectstmt(2)->select_with_parens on only OPEN_PAREN/SELECT kewords at the begining of statement;
(select * from tab);
parse can go through selectstmt( )->select_no_parens(1)->select_clause(2)->select_with_parens(1)->select_no_parens(1)->select_clause(1)->simple_select
instead of selectstmt(1)->select_no_parens(1)->select_clause(2)->select_with_parens(1)->select_no_parens(1)->select_clause(1)->simple_select
Expand Down