Skip to content

Calling end on a pool connection never resolves / triggers cb #3915

@mjbrook

Description

@mjbrook

When calling end() on a pool connection, the function does not execute the provided callback. In the promise API, the promise does not resolve.

The type definitions indicate that it this should be the expected behaviour:

The implementation of end() for the pool connection does not have any parameters so cannot execute any provided callback. The promise API doesn't call resolve() on the wrapping Promise:

The fix for this should be to align the implementation with the type definitions - support providing a callback and resolving the promise for pool connections. I'd be happy to submit a PR for this if this feels like the right approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions