Leave column agreement to the records that read DataType, name the text spelling beside a typed column read, and check a column after the columns it reads
Tests / vet + fmt + tests (pull_request) Successful in 1m3s

This commit is contained in:
2026-09-15 21:13:34 +02:00
parent f781fa47d1
commit acad25708a
6 changed files with 55 additions and 24 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ func recordOf(n node) (*template, []Column, error) {
}
columns := make([]Column, len(names))
for i, name := range names {
datatype, _ := columnDatatype(t.fields[name]) // checkColumns refused a column whose items disagree
datatype, _ := columnDatatype(t.fields[name]) // checkColumns refused items that disagree wherever DataType is read
columns[i] = Column{Name: name, DataType: datatype}
}
return t, columns, nil