Skip to content

Commit a645c48

Browse files
author
James Cor
committed
subqueries specifically
1 parent 8458102 commit a645c48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/planbuilder/show.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,9 @@ func (b *Builder) buildAsOfExpr(inScope *scope, time ast.Expr) sql.Expression {
615615
err := sql.ErrInvalidAsOfExpression.New(v)
616616
b.handleErr(err)
617617
}
618-
default:
618+
case *ast.Subquery:
619619
b.handleErr(fmt.Errorf("invalid AS OF expression type"))
620+
default:
620621
}
621622
return b.buildScalar(b.newScope(), time)
622623
}

0 commit comments

Comments
 (0)