Bug #72023 Unnecessary byte array creation in MysqlIO#unpackBinaryResultSetRow
| Submitted: | 12 Mar 2014 14:17 | Modified: | 3 Apr 2014 20:33 |
|---|---|---|---|
| Reporter: | Andrej Golovnin (OCA) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / J | Severity: | S5 (Performance) |
| Version: | 5.1.29 | OS: | Any |
| Assigned to: | Filipe Silva | CPU Architecture: | Any |
| Tags: | jdbc, MysqlIO | ||
[12 Mar 2014 14:17]
Andrej Golovnin
[12 Mar 2014 14:17]
Andrej Golovnin
Patch for this issue. (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: MysqlIO_72023.patch (application/octet-stream, text), 1.11 KiB.
[14 Mar 2014 11:57]
Filipe Silva
Hi Andrej, Thank you for this bug report and contribution. Verified as described, contribution accepted.
[3 Apr 2014 20:33]
Daniel So
Added the following entry into the Connector/J 5.1.31 changelog: "In the method MysqlIO.unpackBinaryResultSetRow, an array was unnecessarily created to hold the null bit mask. With this fix, Connector/J avoids the creation of the array by making use of the data that is still variable in the original buffer object."
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 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.