Merge branch 'master' of github.com:go-xorm/xorm

This commit is contained in:
Lunny Xiao 2014-08-05 15:46:08 +08:00
commit f3b3ef2934
1 changed files with 3 additions and 0 deletions

View File

@ -983,6 +983,9 @@ func (session *Session) Get(bean interface{}) (bool, error) {
}
// defer stmt.Close() // !nashtsai! don't close due to stmt is cached and bounded to this session
rawRows, err = stmt.Query(args...)
if err != nil {
return false, err
}
} else {
rawRows, err = session.Tx.Query(sqlStr, args...)
}