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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user