File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ func (c *cc) getCols(core *parser.Select_coreContext) []ast.Node {
426
426
}
427
427
428
428
if col .AS_ () != nil {
429
- name := col .Column_alias ().GetText ()
429
+ name := identifier ( col .Column_alias ().GetText () )
430
430
target .Name = & name
431
431
}
432
432
@@ -738,7 +738,7 @@ func (c *cc) convertExprLists(lists []parser.IExprContext) *ast.List {
738
738
func (c * cc ) convertColumnNames (cols []parser.IColumn_nameContext ) * ast.List {
739
739
list := & ast.List {Items : []ast.Node {}}
740
740
for _ , c := range cols {
741
- name := c .GetText ()
741
+ name := identifier ( c .GetText () )
742
742
list .Items = append (list .Items , & ast.ResTarget {
743
743
Name : & name ,
744
744
})
@@ -841,7 +841,7 @@ func (c *cc) convertUpdate_stmtContext(n Update_stmt) ast.Node {
841
841
842
842
list := & ast.List {}
843
843
for i , col := range n .AllColumn_name () {
844
- colName := col .GetText ()
844
+ colName := identifier ( col .GetText () )
845
845
target := & ast.ResTarget {
846
846
Name : & colName ,
847
847
Val : c .convert (n .Expr (i )),
You can’t perform that action at this time.
0 commit comments