-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require a result cursor on all prepared statements
Statement execute must return a cursor because Ruby is highly garbage collected. If the connection is in results-streaming-mode for Statement A, and in the middle Statement B gets garbage collected, a message will be sent to the server notifying it to release Statement B, resulting in one of these errors: Commands out of sync; you can't run this command now Row retrieval was canceled by mysql_stmt_close By telling the server to give us a cursor to the result set, other commands can be sent on the wire during results streaming. Fixes #956
- Loading branch information
Showing
1 changed file
with
26 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters