/**
  * Constructor
  *
  * @param   resource handle
  */
 public function __construct($result, \util\TimeZone $tz = null)
 {
     $fields = [];
     if (is_resource($result)) {
         foreach (sqlsrv_field_metadata($result) as $meta) {
             $fields[$meta['Name']] = $meta;
         }
     }
     parent::__construct($result, $fields, $tz);
 }
 /**
  * Constructor
  *
  * @param   resource handle
  */
 public function __construct($result, \util\TimeZone $tz = null)
 {
     $fields = [];
     if (is_resource($result)) {
         for ($i = 0, $num = sybase_num_fields($result); $i < $num; $i++) {
             $field = sybase_fetch_field($result, $i);
             $fields[$field->name] = $field->type;
         }
     }
     parent::__construct($result, $fields, $tz);
 }
 /**
  * Constructor
  *
  * @param   resource handle
  */
 public function __construct($result)
 {
     $fields = [];
     if ($result instanceof \SQLite3Result) {
         for ($i = 0, $num = $result->numColumns(); $i < $num; $i++) {
             $fields[$result->columnName($i)] = $result->columnType($i);
             // Types are unknown
         }
     }
     parent::__construct($result, $fields);
 }
 /**
  * Constructor
  *
  * @param   resource handle
  */
 public function __construct($result, \util\TimeZone $tz = null)
 {
     $fields = [];
     if (is_resource($result)) {
         for ($i = 0, $num = ibase_num_fields($result); $i < $num; $i++) {
             $field = ibase_field_info($result, $i);
             $fields[$field['name']] = $field['type'];
         }
     }
     parent::__construct($result, $fields, $tz);
 }
 /**
  * Constructor
  *
  * @param   var[] data
  */
 public function __construct($data = array())
 {
     $s = sizeof($data);
     parent::__construct($s, $s ? array_keys($data[0]) : array());
     $this->data = $data;
 }