Skip to content

Commit

Permalink
Revert "ast: Change the implementation of Accept for DefaultExpr (#1007
Browse files Browse the repository at this point in the history
…)" (#1013)
  • Loading branch information
qw4990 authored Sep 8, 2020
1 parent 528ff1a commit 4d637af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ast/expressions.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,13 @@ func (n *DefaultExpr) Accept(v Visitor) (Node, bool) {
return v.Leave(newNode)
}
n = newNode.(*DefaultExpr)
if n.Name != nil {
node, ok := n.Name.Accept(v)
if !ok {
return n, false
}
n.Name = node.(*ColumnName)
}
return v.Leave(n)
}

Expand Down

0 comments on commit 4d637af

Please sign in to comment.