Skip to content

Drivers should generally allow "dangling" statements and record readers #3815

@lidavidm

Description

@lidavidm

What feature or improvement would you like to see?

#3713
#3135 (comment)

We should allow you to close a statement even if the record reader is not drained, and close a connection even if statements are not closed. Currently this is considered unsafe and various bindings guard against this. Instead the driver should be prepared and invalidate the statement/readers.

I think, however, the API user should still be expected to Release the statement/reader to avoid leaking memory. But leaking memory is better than crashing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions