Skip to content

MySQL prepared statement are leaked when using one-shot non-cached preparedQueries #685

@BillyYccc

Description

@BillyYccc

Currently MySQL one-shot prepared queries(i.e. using SqlClient#preparedQuery) with cache statement option off will never close the internal statement after executing, the user can neither close it by themselves, which those statement handles will cause leaks on the server side. Instead we should close it in MySQL client after executing if it's not cached to be reused.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions