pingcap / pingcap/tidb

Provide a way to check `sqlexec.RecordSet` is closed or not

Open
#61,885 3 comments 1 reaction 0 assignees View on GitHub
sig/sql-infra sig/transaction type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
When we forget to close a `recordSet`, some variables in the session will not be cleared, affecting the execution of the next SQL statement, such as https://github.com/pingcap/tidb/issues/61884. So we need to provide a way to prevent this happened again.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.