bug fixed for testWhileIdle.

This commit is contained in:
wenshao
2017-11-02 16:36:01 +08:00
parent f13fc91360
commit a9c31ecdc2
3 changed files with 22 additions and 12 deletions
@@ -293,6 +293,10 @@ public class MySqlUtils {
try {
Object connImpl = conn.unwrap(class_connectionImpl);
if (connImpl == null) {
return -1;
}
Object mysqlio = method_getIO.invoke(connImpl);
Long ms = (Long) method_getLastPacketReceivedTimeMs.invoke(mysqlio);
return ms.longValue();