Skip to content

Conversation

janickr
Copy link

@janickr janickr commented Mar 6, 2023

This PR defers calling Messages.getString(...) to the moment an SQLException needs to be thrown. This avoids loading the message from the resourcebundle and the subsequent String formatting and saves some wasted allocations in the case the calling code handles ResultSets correctly (checking if the resultset is empty or has no more rows).

@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

@janickr
Copy link
Author

janickr commented Mar 6, 2023

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=110286 for updates.
Thanks

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