small optimization
This commit is contained in:
parent
b7ab22b84c
commit
9bf34c3189
|
@ -4,7 +4,7 @@ Xorm is a simple and powerful ORM for Go.
|
|||
|
||||
[](https://gitter.im/go-xorm/xorm?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
||||
|
||||
[](https://drone.io/github.com/go-xorm/tests/latest) [](http://gowalker.org/github.com/go-xorm/xorm) [](https://bitdeli.com/free "Bitdeli Badge")
|
||||
[](https://drone.io/github.com/go-xorm/tests/latest)
|
||||
|
||||
# Notice
|
||||
|
||||
|
@ -61,7 +61,7 @@ Drivers for Go's sql package which currently support database/sql includes:
|
|||
|
||||
* **v0.4.5**
|
||||
* many bugs fixed
|
||||
* extends support unlimited deep
|
||||
* extends support unlimited deepth
|
||||
* Delete Limit support
|
||||
|
||||
* **v0.4.4**
|
||||
|
|
|
@ -1840,8 +1840,9 @@ func (session *Session) _row2Bean(rows *core.Rows, fields []string, fieldsCount
|
|||
return err
|
||||
}
|
||||
if has {
|
||||
v := structInter.Elem().Interface()
|
||||
fieldValue.Set(reflect.ValueOf(v))
|
||||
//v := structInter.Elem().Interface()
|
||||
//fieldValue.Set(reflect.ValueOf(v))
|
||||
fieldValue.Set(structInter.Elem())
|
||||
} else {
|
||||
return errors.New("cascade obj is not exist!")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue