Skip to content

Conversation

ilanfrai
Copy link

@ilanfrai ilanfrai commented Oct 2, 2025

this PR attempts to fix issue #1119

Currently the rows count is only set to 0 in the CommandComplete handler, but in case of an error this handler isn't called.

I changed the rows reset to be also on the query prepare handler which is called any time a query starts execution. This is in the same place where other variables are cleared (e.g. the result).

I also added a new test that checks this scenario (fails before the fix and passes once fix is applied)

@ilanfrai ilanfrai changed the title reset rows count before executing new queries on a connection Fix: reset rows count before executing new queries on a connection Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant