Method In provides a update string

This commit is contained in:
unphp 2014-04-15 10:28:58 +08:00
parent 64e5181112
commit e2aa0ef2c2
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ func (engine *Engine) In(column string, args ...interface{}) *Session {
return session.In(column, args...) return session.In(column, args...)
} }
// Method In provides a update string like "column = column + ?" // Method Inc provides a update string like "column = column + ?"
func (engine *Engine) Inc(column string, arg interface{}) *Session { func (engine *Engine) Inc(column string, arg interface{}) *Session {
session := engine.NewSession() session := engine.NewSession()
session.IsAutoClose = true session.IsAutoClose = true