Skip to content

Commit 0a910f3

Browse files
committed
no longer panics but fails a bunch of tests
1 parent 2ae3d47 commit 0a910f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/planbuilder/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func (b *Builder) analyzeSelectList(inScope, outScope *scope, selectExprs ast.Se
135135
err := sql.ErrColumnNotFound.New(gf.String())
136136
b.handleErr(err)
137137
}
138-
col = scopeColumn{id: id, tableId: gf.TableId(), col: e.Name(), db: gf.Database(), table: gf.Table(), typ: gf.Type(), nullable: gf.IsNullable(), originalCol: gf.Name()}
138+
col = scopeColumn{id: id, tableId: gf.TableId(), col: e.Name(), db: gf.Database(), table: gf.Table(), typ: gf.Type(), scalar: e, nullable: gf.IsNullable(), originalCol: gf.Name()}
139139
} else if sq, ok := e.Child.(*plan.Subquery); ok {
140140
col = scopeColumn{col: e.Name(), scalar: e, typ: sq.Type(), nullable: sq.IsNullable()}
141141
} else {

0 commit comments

Comments
 (0)