File tree 4 files changed +786
-728
lines changed
4 files changed +786
-728
lines changed Original file line number Diff line number Diff line change @@ -1003,7 +1003,7 @@ func (c *cc) convertTablesOrSubquery(n []parser.ITable_or_subqueryContext) []ast
1003
1003
}
1004
1004
1005
1005
type Update_stmt interface {
1006
- Qualified_table_name () parser.IQualified_table_nameContext
1006
+ Table_name () parser.ITable_nameContext
1007
1007
GetStart () antlr.Token
1008
1008
AllColumn_name () []parser.IColumn_nameContext
1009
1009
WHERE_ () antlr.TerminalNode
@@ -1017,7 +1017,7 @@ func (c *cc) convertUpdate_stmtContext(n Update_stmt) ast.Node {
1017
1017
}
1018
1018
1019
1019
relations := & ast.List {}
1020
- tableName := n .Qualified_table_name ().GetText ()
1020
+ tableName := n .Table_name ().GetText ()
1021
1021
rel := ast.RangeVar {
1022
1022
Relname : & tableName ,
1023
1023
Location : n .GetStart ().GetStart (),
Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ compound_operator:
468
468
update_stmt :
469
469
with_clause? UPDATE_ (
470
470
OR_ (ROLLBACK_ | ABORT_ | REPLACE_ | FAIL_ | IGNORE_ )
471
- )? qualified_table_name SET_ (column_name | column_name_list) ASSIGN expr (
471
+ )? table_name ( AS_ ? table_alias)? SET_ (column_name | column_name_list) ASSIGN expr (
472
472
COMMA (column_name | column_name_list) ASSIGN expr
473
473
)* (FROM_ table_or_subquery)? (WHERE_ expr)? returning_clause?
474
474
;
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments