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(); }