Skip to content

Conversation

YujiSoftware
Copy link
Contributor

@YujiSoftware YujiSoftware commented Apr 6, 2025

Fix #1398

When there are 0 rows in the result, the condition to load the cache from the beginning ( lastRowProcessed == numberOfRows) is met, and the else route is not entered. Because of this, rb_mysql_result_free_result is not called.
To resolve this, the else route is always entered first.

When there are 0 rows in the result, the condition to load the cache from the beginning (lastRowProcessed == numberOfRows) is met, and the else route is not entered.
To resolve this, the else route is always entered first.
@sodabrew sodabrew added this to the 0.5.5 milestone Apr 7, 2025
@sodabrew sodabrew merged commit 3adb531 into brianmario:master Apr 7, 2025
18 of 27 checks passed
@sodabrew
Copy link
Collaborator

sodabrew commented Apr 7, 2025

Confirmed your repro in #1398 and this fix! Really appreciate your clean and clear fix!

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.

Prepared statements randomly fail to return results

2 participants