增加mysql断线重连优化

This commit is contained in:
hoteas 2022-06-14 11:29:54 +08:00
parent 07c7a628d1
commit 1f25f511cc

View File

@ -341,7 +341,7 @@ func (that *HoTimeDB) Query(query string, args ...interface{}) []Map {
} }
return that.Query(query, args...) return that.Query(query, args...)
} }
return nil return that.Query(query, args...)
} }
return that.Row(resl) return that.Row(resl)
@ -379,6 +379,7 @@ func (that *HoTimeDB) Exec(query string, args ...interface{}) (sql.Result, *Erro
} }
return that.Exec(query, args...) return that.Exec(query, args...)
} }
return that.Exec(query, args...)
} }
return resl, that.LastErr return resl, that.LastErr