You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var dest struct {
Count int `sql:"primary_key"`
ID []string
}
When the id column is null like this, QueryContext panic with an error call of reflect.Value.Type on zero Value
count|id|
-----+--+
0| |
I’ve tracked the issue in the function scanContext.rowElemValuePtr of file qrm/scan_context.go. “ID” is a slice of primitive and since the value is nil, there is not enough type information to create the slice by reflection.