Give a table's current row one owner, the pin set, and return a column's null from its read

This commit is contained in:
2026-09-27 23:48:31 +02:00
committed by Lillem4n
parent 52292d3669
commit 3b77ed6b06
6 changed files with 38 additions and 31 deletions
-3
View File
@@ -264,9 +264,6 @@ func recordOf(n node) (*template, []Column, error) {
// over sc's hold; a table's columns read the row pinned there.
func renderRecord(s *session, t *template, columns []Column, sc renderScope) *Record {
sc = sc.in(t)
if t.table != nil {
sc.t, sc.row = t.table, sc.hold().pins.mustRow(t.table)
}
r := &Record{columns: append([]Column(nil), columns...)}
for i := range r.columns {
column := renderLeaf(s, t.fields[r.columns[i].Name], sc)