Skip to content

Commit

Permalink
fix: add hash partition table keywords MODULUS and REMAINDER
Browse files Browse the repository at this point in the history
  • Loading branch information
JackWang032 committed Jan 3, 2025
1 parent bdb4b96 commit 55c38eb
Show file tree
Hide file tree
Showing 4 changed files with 9,586 additions and 8,701 deletions.
4 changes: 2 additions & 2 deletions src/grammar/postgresql/PostgreSqlParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ reloption_elem
;

partitionboundspec
: KW_FOR KW_VALUES KW_WITH OPEN_PAREN nonreservedword Integral (
COMMA (nonreservedword Integral)
: KW_FOR KW_VALUES KW_WITH OPEN_PAREN (nonreservedword | KW_MODULUS) Integral (
COMMA ((nonreservedword | KW_REMAINDER) Integral)
)* CLOSE_PAREN
| KW_FOR KW_VALUES KW_IN execute_param_clause
| KW_FOR KW_VALUES KW_FROM execute_param_clause KW_TO execute_param_clause
Expand Down
2 changes: 1 addition & 1 deletion src/lib/postgresql/PostgreSqlParser.interp

Large diffs are not rendered by default.

Loading

0 comments on commit 55c38eb

Please sign in to comment.