Provide a way to check `sqlexec.RecordSet` is closed or not
Open
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
Assessment
This issue has not been assessed yet.