1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 22:01:29 +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())