Fix get database connection for prepared stmt, close #4214

This commit is contained in:
Jinzhu 2021-03-25 10:17:57 +08:00
parent 26e0c6fb69
commit a8b72546c1
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ type PreparedStmtDB struct {
ConnPool
}
func (db *PreparedStmtDB) GetDB() (*sql.DB, error) {
func (db *PreparedStmtDB) GetDBConn() (*sql.DB, error) {
if dbConnector, ok := db.ConnPool.(GetDBConnector); ok && dbConnector != nil {
return dbConnector.GetDBConn()
}