Bug #93201 reconsider the number of SHOW [SESSION] VARIABLES commands run by connector/C++
| Submitted: | 15 Nov 2018 6:12 | Modified: | 3 Feb 2021 15:09 |
|---|---|---|---|
| Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / C++ | Severity: | S5 (Performance) |
| Version: | 8.0.13 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[15 Nov 2018 6:12]
Shane Bester
[15 Nov 2018 7:06]
Shane Bester
Here's the request for connector/net https://bugs.mysql.com/bug.php?id=93202
[15 Nov 2018 9:35]
MySQL Verification Team
Hello Shane, Thank you for the report. Regards, Umesh
[3 Feb 2021 15:09]
Paul DuBois
Posted by developer: Fixed in 8.0.24. Upon connecting to the server, Connector/C++ executed a number of SHOW [SESSION] VARIABLES statements to retrieve system variable values. Such statements involve locking in the server, so they are now avoided in favor of SELECT @@var_name statements. Additionally, Connector/C++ was trying to fetch the value of the max_statement_time system variable, which has been renamed to max_execution_time. Connector/C++ now uses the correct variable name, with the result that getQueryTimeout() and setQueryTimeout() now work properly for both Statement and Prepared Statement objects.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.054 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.