Skip to content

Commit f2e6b60

Browse files
authored
fix: add hash partition table keywords MODULUS and REMAINDER (#384)
1 parent b788e1c commit f2e6b60

File tree

4 files changed

+9185
-9203
lines changed

4 files changed

+9185
-9203
lines changed

src/grammar/postgresql/PostgreSqlParser.g4

+1-3
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,7 @@ reloption_elem
526526
;
527527

528528
partitionboundspec
529-
: KW_FOR KW_VALUES KW_WITH OPEN_PAREN nonreservedword Integral (
530-
COMMA (nonreservedword Integral)
531-
)* CLOSE_PAREN
529+
: KW_FOR KW_VALUES KW_WITH OPEN_PAREN KW_MODULUS Integral COMMA KW_REMAINDER Integral CLOSE_PAREN
532530
| KW_FOR KW_VALUES KW_IN execute_param_clause
533531
| KW_FOR KW_VALUES KW_FROM execute_param_clause KW_TO execute_param_clause
534532
| KW_DEFAULT

src/lib/postgresql/PostgreSqlParser.interp

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)