Skip to content

Race condition when doing a disconnect in exec callback #3

@efarrar

Description

@efarrar

A bug was introduced by the fix to #2 that causes a crash. If the callback to an exec statement does an immediate disconnect, there is a race condition between the clean-up of the prepared statement (created by the exec), and the disconnection. The clean-up code should be modified to check if the database connection is still active before trying to clear the prepared statement.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions