/** * @param resource|ResultWrapper $res * @param int $n * @return mixed */ protected function mysqlFieldType($res, $n) { $field = $res->fetch_field_direct($n); return $field->type; }