MySQL: Support multiple result sets in prepared queries#825
Merged
asherkin merged 1 commit intoalliedmodders:masterfrom Jun 5, 2018
Merged
Conversation
Prepared statements can return multiple result sets since MySQL 5.5. That can happen when calling stored procedures using `CALL x();`. This change removes the previous caching of result bindings, since the number of fields in a result can differ from result set to result set. This could potentially have a negative impact on prepared statements always only returning one result set, since the result binding buffers are recreated everytime the statement is executed instead of once. That difference should be negligible. Fixes alliedmodders#823.
|
@asherkin When will we be able to use this? (since which version of sourcemod) |
Member
|
@Codes97 1.10 build 6287 |
|
@asherkin Sorry I still bothering, but which stable build would it be? And how's the process? how many dev builds do you do to make a stable one?It depends on changes? testing? |
Contributor
|
1.10 isn't the current dev-Version ( that's 1.9 ). So it could take some months. If you want that build you can download it here but only available for windows. |
|
Thanks Bara, but I need it for linux, no problem, I'll wait |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Prepared statements can return multiple result sets in MySQL 5.5. That can happen when calling stored procedures using
CALL x();.This change removes the previous caching of result bindings, since the number of fields in a result can differ from result set to result set. This could potentially have a negative impact on performance of prepared statements always only returning one result set, since the result binding buffers are recreated everytime the statement is executed instead of once. That difference should be negligible though.
Fixes #823.
Usage is just like with normal queries:
Output: