Merge pull request #63811 from zzyReal666/63657

fix antlr insertStmt for issue 63657
This commit is contained in:
Raúl Marín 2024-05-17 11:43:17 +00:00 committed by GitHub
commit 706056015a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -218,9 +218,17 @@ insertStmt: INSERT INTO TABLE? (tableIdentifier | FUNCTION tableFunctionExpr) co
columnsClause: LPAREN nestedIdentifier (COMMA nestedIdentifier)* RPAREN;
dataClause
: FORMAT identifier # DataClauseFormat
| VALUES # DataClauseValues
| selectUnionStmt SEMICOLON? EOF # DataClauseSelect
: FORMAT identifier # DataClauseFormat
| VALUES assignmentValues (COMMA assignmentValues)* # DataClauseValues
| selectUnionStmt SEMICOLON? EOF # DataClauseSelect
;
assignmentValues
: LPAREN assignmentValue (COMMA assignmentValue)* RPAREN
| LPAREN RPAREN
;
assignmentValue
: literal
;
// KILL statement