Split the expansion's hold from the group's, and read a table's row from where the table is entered
This commit is contained in:
@@ -263,6 +263,9 @@ 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 = sc.at(t.table.pinnedRow, &sc.hold().pins)
|
||||
}
|
||||
r := &Record{columns: append([]Column(nil), columns...)}
|
||||
for i := range r.columns {
|
||||
column := renderLeaf(s, t.fields[r.columns[i].Name], sc)
|
||||
|
||||
Reference in New Issue
Block a user