/**
  * @param array $queries
  *
  * @return array
  * @throws SQLBatchException
  */
 private function executeQueries(array $queries)
 {
     $results = $this->binding->sqlBatch($queries)['result'];
     if (!is_array($results) || count($results) !== 1) {
         throw new SQLBatchException('unexpected response from server when executing batch request');
     }
     $res = [];
     foreach ($results[0] as $k => $v) {
         if ($k[0] === 'n') {
             $res[substr($k, 1)] = $v;
         }
     }
     return $res;
 }