Skip to content

Commit c9d8b09

Browse files
committed
Fix get database connection for prepared stmt, close go-gorm#4214
1 parent 425a94e commit c9d8b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prepare_stmt.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type PreparedStmtDB struct {
1818
ConnPool
1919
}
2020

21-
func (db *PreparedStmtDB) GetDB() (*sql.DB, error) {
21+
func (db *PreparedStmtDB) GetDBConn() (*sql.DB, error) {
2222
if dbConnector, ok := db.ConnPool.(GetDBConnector); ok && dbConnector != nil {
2323
return dbConnector.GetDBConn()
2424
}

0 commit comments

Comments
 (0)