Skip to content

Commit 8a0b70f

Browse files
committed
fix names
1 parent 49ecdfb commit 8a0b70f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/planbuilder/scalar.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,12 @@ func (b *Builder) buildScalar(inScope *scope, e ast.Expr) (ex sql.Expression) {
372372
return values
373373
}
374374
case *ast.ExistsExpr:
375-
sq := b.buildScalar(inScope, v.Subquery)
376-
sqPlan, ok := sq.(*plan.Subquery)
375+
subquery := b.buildScalar(inScope, v.Subquery)
376+
subqueryPlan, ok := subquery.(*plan.Subquery)
377377
if !ok {
378-
b.handleErr(fmt.Errorf("expected Subquery from ExistsExpr, got %T", sq))
378+
b.handleErr(fmt.Errorf("expected Subquery from ExistsExpr, got %T", subquery))
379379
}
380-
return plan.NewExistsSubquery(sqPlan)
380+
return plan.NewExistsSubquery(subqueryPlan)
381381
case *ast.TimestampFuncExpr:
382382
var (
383383
unit sql.Expression

0 commit comments

Comments
 (0)