Bug #97714 Contribution: Expose elapsed time for query interceptor to avoid hacky thre ...
Submitted: 20 Nov 2019 15:25 Modified: 27 Mar 2020 18:05
Reporter: OCA Admin (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S4 (Feature request)
Version: OS:Any
Assigned to: CPU Architecture:Any

[20 Nov 2019 15:25] OCA Admin
Description:
This bug tracks a contribution by Matti Sillanpää (Github user: msillanpaa) as described in http://github.com/mysql/mysql-connector-j/pull/45

How to repeat:
See description

Suggested fix:
See contribution code attached
[20 Nov 2019 15:25] OCA Admin
Contribution submitted via Github - Expose elapsed time for query interceptor to avoid hacky thread local implementa 
(*) Contribution by Matti Sillanpää (Github msillanpaa, mysql-connector-j/pull/45#issuecomment-556014985): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_340539508.txt (text/plain), 13.69 KiB.

[20 Nov 2019 21:15] MySQL Verification Team
Thank you for the contribution
[29 Nov 2019 14:07] Johnathan Crawford
@Miguel you're welcome, don't hesitate to contact us if further changes are required to integrate this feature.
[22 Jan 2020 14:30] Johnathan Crawford
@Miguel any feedback for this feature?
[27 Mar 2020 18:05] Daniel So
Posted by developer:
 
Added the following entry to the Connector/J 8.0.20 changelog:

"A new method, getElapsedTime(), has been added to Connector/J 's implementation of the Statement interface, to expose the elapsed time for a query. Thanks to Matti Sillanpää for contributing the code."