Compare commits
1 commit
master
...
lbrygo-upd
Author | SHA1 | Date | |
---|---|---|---|
|
b66d119583 |
1 changed files with 3 additions and 7 deletions
|
@ -5,9 +5,9 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/pkg/errors"
|
||||||
"github.com/lbryio/sqlboiler/boil"
|
"github.com/lbryio/sqlboiler/boil"
|
||||||
"github.com/lbryio/sqlboiler/strmangle"
|
"github.com/lbryio/sqlboiler/strmangle"
|
||||||
"github.com/pkg/errors"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type loadRelationshipState struct {
|
type loadRelationshipState struct {
|
||||||
|
@ -259,14 +259,10 @@ func collectLoaded(key string, loadingFrom reflect.Value) (reflect.Value, bindKi
|
||||||
for {
|
for {
|
||||||
switch bkind {
|
switch bkind {
|
||||||
case kindStruct:
|
case kindStruct:
|
||||||
if !loadedObject.IsNil() {
|
|
||||||
collection = reflect.Append(collection, loadedObject)
|
collection = reflect.Append(collection, loadedObject)
|
||||||
}
|
|
||||||
case kindPtrSliceStruct:
|
case kindPtrSliceStruct:
|
||||||
if !loadedObject.IsNil() {
|
|
||||||
collection = reflect.AppendSlice(collection, loadedObject)
|
collection = reflect.AppendSlice(collection, loadedObject)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
i++
|
i++
|
||||||
if i >= lnFrom {
|
if i >= lnFrom {
|
||||||
|
|
Loading…
Reference in a new issue