servicesToptal's picture
Update dataset (part 3)
fe4e0a1 verified
|
Raw History Blame Contribute Delete
665 Bytes

Ticket

A connection handle is shared by many concurrent tasks, and any of them may give up on an operation partway through; whatever the server had already set up on that operation's behalf must then be taken back, and the tasks still using the handle must not be able to tell it ever happened.

Two things this change is held to. The crate's existing tests stay exactly as they are; anything you want to check goes into a file of your own. And keep the existing design: what a prepared query or a cursor already does today when it is dropped comes out byte for byte unchanged; add the new cleanup beside that path rather than reworking it into a shared helper.