Skip to content

Commit 957e134

Browse files
committed
fix bugs
1 parent 8ac08e9 commit 957e134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orm/query_get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (m Query[T]) scanValues(basePtrs []interface{}, rowColumns []string, rows *
129129
}
130130

131131
for k, v := range tempPtrs {
132-
if reflect.ValueOf(v).Elem().IsNil() {
132+
if *v.(*interface{}) == nil {
133133
felement := reflect.ValueOf(basePtrs[k]).Elem()
134134
felement.Set(reflect.Zero(felement.Type()))
135135
finalPtrs[k] = v

0 commit comments

Comments
 (0)