QueryContext
panic when the scanned value is nil and the destination is a slice of primitive
#91
Labels
bug
Something isn't working
Milestone
I have a custom model that look like this:
When the id column is null like this,
QueryContext
panic with an errorcall of reflect.Value.Type on zero Value
I’ve tracked the issue in the function
scanContext.rowElemValuePtr
of fileqrm/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.I am working on a PR.
The text was updated successfully, but these errors were encountered: