Let a struct field's Go type type a bare number or boolean in its tag, and offer only a datatype that holds a refused column's number

This commit is contained in:
2026-10-08 11:57:06 +02:00
committed by Lillem4n
parent 9e392d02fd
commit 71c5039f04
5 changed files with 39 additions and 30 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func datatypeOf(m map[string]any, pos position) (*DataType, error) {
if name != d.String() {
continue
}
if pos != inColumn {
if !pos.column() {
return nil, nil
}
return &d, nil