mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 06:07:39 +02:00
FireBird driver: implemented getResultColumns()
This commit is contained in:
@@ -442,7 +442,18 @@ class DibiFirebirdDriver extends DibiObject implements IDibiDriver, IDibiResultD
|
|||||||
*/
|
*/
|
||||||
public function getResultColumns()
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user