Dibi\Drivers\OracleDriver::getResultColumns PHP Method

getResultColumns() public method

Returns metadata for all columns in a result set.
public getResultColumns ( ) : array
return array
    public function getResultColumns()
    {
        $count = oci_num_fields($this->resultSet);
        $columns = [];
        for ($i = 1; $i <= $count; $i++) {
            $type = oci_field_type($this->resultSet, $i);
            $columns[] = ['name' => oci_field_name($this->resultSet, $i), 'table' => NULL, 'fullname' => oci_field_name($this->resultSet, $i), 'nativetype' => $type === 'NUMBER' && oci_field_scale($this->resultSet, $i) === 0 ? 'INTEGER' : $type];
        }
        return $columns;
    }