1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 15:30:55 +00:00

orm add missed SetMaxIdleConns

This commit is contained in:
slene 2013-08-12 13:24:45 +08:00
parent eb06435f23
commit deb00809a5

View File

@ -118,6 +118,8 @@ func RegisterDataBase(name, driverName, dataSource string, maxIdle int) {
goto end
}
al.DB.SetMaxIdleConns(al.MaxIdle)
err = al.DB.Ping()
if err != nil {
err = fmt.Errorf("register db `%s`, %s", name, err.Error())