bug fixed #205, thanks chnykn
This commit is contained in:
parent
a2fe082f1a
commit
ad44696e9a
|
@ -3408,8 +3408,10 @@ func (session *Session) Update(bean interface{}, condiBean ...interface{}) (int6
|
|||
if err != nil {
|
||||
return 0, err
|
||||
} else if doIncVer {
|
||||
if verValue != nil && verValue.IsValid() && verValue.CanSet() {
|
||||
verValue.SetInt(verValue.Int() + 1)
|
||||
}
|
||||
}
|
||||
|
||||
if cacher := session.Engine.getCacher2(table); cacher != nil && session.Statement.UseCache {
|
||||
cacher.ClearIds(session.Statement.TableName())
|
||||
|
|
Loading…
Reference in New Issue