Skip to content

Conversation

vtermanis
Copy link

The cursor (both pure and extension versions) uses a single SELECT query to retrieve procedure result parameters after a procedure call (as part of callproc). However, to set the input parameters, one SET call is used per parameter. For any procedures with more than one parameter this results in more queries than necessary and ultimately the callproc call takes longer.

With this patch just a single SET call is made.

- Make only one single call to SET variables used as procedure parameters
  (rather than one per parameter, to be in line with procedure OUT/INOUT
  retrieval).
@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@vtermanis
Copy link
Author

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=89345 for updates.
Thanks

@vtermanis vtermanis deleted the callproc_set_single branch March 15, 2018 10:36
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.

2 participants