Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.2.0
-
None
-
JDBC
Description
MySQLProtocol at line 417
SelectQueryResult qr = null;
try
finally
{ if (qr != null)qr.close(); }doesn't check the return from qr.next which can be zero. Code should be:
SelectQueryResult qr = null;
try {
qr = (SelectQueryResult) executeQuery(new MySQLQuery("show variables like 'max_allowed_packet'"));
if (qr.next())
{ setMaxAllowedPacket(qr.getValueObject(1).getInt()); }
} finally { if (qr != null)qr.close(); }
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Georg Richter [ georg ] | diego dupin [ diego dupin ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Fix Version/s | 1.2.1 [ 19602 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Fix Version/s | 1.2.2 [ 19900 ] | |
Fix Version/s | 1.3.0 [ 19602 ] |
Workflow | MariaDB v3 [ 70801 ] | MariaDB v4 [ 134786 ] |
thanks for this point.
done with the commit : https://github.com/MariaDB/mariadb-connector-j/commit/297b234656e084843e0070bbde2a70b5f541f040