Skip to content

Ensure result.free is called when calling #execute#39

Merged
ianoxley merged 3 commits intomasterfrom
execute-free-result
Mar 11, 2021
Merged

Ensure result.free is called when calling #execute#39
ianoxley merged 3 commits intomasterfrom
execute-free-result

Conversation

@ianoxley
Copy link
Contributor

A Commands out of sync error can arise if we try and execute a new
query before freeing the result of a previous query. So, where we ensure
we close each statement we also ensure we free the result.

A `Commands out of sync` error can arise if we try and execute a new
query before freeing the result of a previous query. So, where we ensure
we close each statement we also ensure we free the result.
@ianoxley ianoxley added the enhancement New feature or request label Mar 11, 2021
@ianoxley ianoxley self-assigned this Mar 11, 2021
Add specs that verify that we free the result, and close the statement.
samcartwrigh
samcartwrigh previously approved these changes Mar 11, 2021
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 24a1e5c and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 100.0% (0.0% change).

View more on Code Climate.

@ianoxley ianoxley merged commit 34c0f3a into master Mar 11, 2021
@ianoxley ianoxley deleted the execute-free-result branch March 11, 2021 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

2 participants