Skip to content

Commit 55c38eb

Browse files
committed
fix: add hash partition table keywords MODULUS and REMAINDER
1 parent bdb4b96 commit 55c38eb

File tree

4 files changed

+9586
-8701
lines changed

4 files changed

+9586
-8701
lines changed

src/grammar/postgresql/PostgreSqlParser.g4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ reloption_elem
526526
;
527527

528528
partitionboundspec
529-
: KW_FOR KW_VALUES KW_WITH OPEN_PAREN nonreservedword Integral (
530-
COMMA (nonreservedword Integral)
529+
: KW_FOR KW_VALUES KW_WITH OPEN_PAREN (nonreservedword | KW_MODULUS) Integral (
530+
COMMA ((nonreservedword | KW_REMAINDER) Integral)
531531
)* CLOSE_PAREN
532532
| KW_FOR KW_VALUES KW_IN execute_param_clause
533533
| KW_FOR KW_VALUES KW_FROM execute_param_clause KW_TO execute_param_clause

src/lib/postgresql/PostgreSqlParser.interp

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)