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:
parent
0a17cc50ae
commit
d1a63ce757
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user