2
0

Remove ConnConfig.BuildStatementCache

This commit is contained in:
Jack Christensen
2022-03-12 09:23:40 -06:00
parent f27178ba85
commit 8e341e20f3
9 changed files with 124 additions and 219 deletions
+2 -2
View File
@@ -161,8 +161,8 @@ func (rows *connRows) Close() {
if rows.logger.shouldLog(LogLevelError) {
rows.logger.log(rows.ctx, LogLevelError, "Query", map[string]interface{}{"err": rows.err, "sql": rows.sql, "args": logQueryArgs(rows.args)})
}
if rows.err != nil && rows.conn.stmtcache != nil {
rows.conn.stmtcache.StatementErrored(rows.sql, rows.err)
if rows.err != nil && rows.conn.statementCache != nil {
rows.conn.statementCache.StatementErrored(rows.sql, rows.err)
}
}
}