Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cor committed Dec 26, 2024
1 parent 6c45ada commit 0780aab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/planbuilder/scalar.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,10 @@ func (b *Builder) getOrigTblName(node sql.Node, alias string) string {
// Look past table aliases
var origTbl string
transform.Inspect(node, func(n sql.Node) bool {
switch n := node.(type) {
switch nn := n.(type) {
case *plan.TableAlias:
if n.Name() == alias {
if child, ok := n.Child.(sql.Nameable); ok {
if nn.Name() == alias {
if child, ok := nn.Child.(sql.Nameable); ok {
origTbl = child.Name()
}
}
Expand Down

0 comments on commit 0780aab

Please sign in to comment.