bug fixed

This commit is contained in:
Lunny Xiao 2015-05-07 17:14:06 +08:00
parent 1992491553
commit cb75b2cd9c
2 changed files with 4 additions and 4 deletions

View File

@ -1002,9 +1002,9 @@ func (session *Session) Get(bean interface{}) (bool, error) {
var err error
session.queryPreprocess(&sqlStr, args...)
if session.IsAutoCommit {
stmt, err := session.doPrepare(sqlStr)
if err != nil {
return false, err
stmt, errPrepare := session.doPrepare(sqlStr)
if errPrepare != nil {
return false, errPrepare
}
// defer stmt.Close() // !nashtsai! don't close due to stmt is cached and bounded to this session
rawRows, err = stmt.Query(args...)

View File

@ -17,7 +17,7 @@ import (
)
const (
Version string = "0.4.3.0428"
Version string = "0.4.3.0507"
)
func regDrvsNDialects() bool {