36 if ($this->resultFields ==
null)
38 $this->resultFields = array();
39 if (is_resource($this->resource))
41 $numFields = oci_num_fields($this->resource);
42 if ($numFields > 0 && $this->connection)
44 $helper = $this->connection->getSqlHelper();
45 for ($i = 1; $i <= $numFields; $i++)
47 $name = oci_field_name($this->resource, $i);
48 $type = oci_field_type($this->resource, $i);
50 "precision" => oci_field_precision($this->resource, $i),
51 "scale" => oci_field_scale($this->resource, $i),
52 "size" => oci_field_size($this->resource, $i),
55 $this->resultFields[$name] = $helper->getFieldByColumnType($name, $type, $parameters);
61 return $this->resultFields;