1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-24 10:53:17 +01:00

FireBird driver: implemented getResultColumns()

This commit is contained in:
David Grudl 2012-01-03 05:34:56 +01:00
parent 0a17cc50ae
commit d1a63ce757

View File

@ -442,7 +442,18 @@ class DibiFirebirdDriver extends DibiObject implements IDibiDriver, IDibiResultD
*/
public function getResultColumns()
{
throw new DibiNotImplementedException;
$count = ibase_num_fields($this->resultSet);
$columns = array();
for ($i = 0; $i < $count; $i++) {
$row = (array) ibase_field_info($this->resultSet, $i);
$columns[] = array(
'name' => $row['name'],
'fullname' => $row['name'],
'table' => $row['relation'],
'nativetype' => $row['type'],
);
}
return $columns;
}