/**
  * @param $sql
  * @param $arguments
  * @param $load_mode
  * @param $return_mode
  * @return array|bool|DateTime|float|int|mixed|null|string
  * @throws QueryException
  */
 private function handleMySqlGoneAway($sql, $arguments, $load_mode, $return_mode)
 {
     if (!$this->link->ping()) {
         $this->log->notice('Mysql reconnect failed');
         throw new QueryException($this->link->error, $this->link->errno);
     }
     return $this->advancedExecute($sql, $arguments, $load_mode, $return_mode);
 }