Ticket #744 (closed Patch: fixed)
Pgsql Driver - list_fields bug fix
| Reported by: | Nowaker | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | major | Milestone: | 2.2.1 |
| Component: | Libraries:Database | Version: | SVN HEAD |
| Keywords: | pgsql list_fields | Cc: |
Description
An error occurs if config item "object" is set to FALSE. The driver does not check it and assumes "object" set to TRUE.
Fix:
// line 297
if ($this->db_config['object'])
{
foreach ($query as $row)
{
$fields[$row->Field] = $row->Type;
}
}
else
{
foreach ($query as $row)
{
$fields[$row['Field']] = $row['Type'];
}
}
* $Id: Pgsql.php 2861 2008-06-19 18:44:29Z zombor $
Change History
Note: See
TracTickets for help on using
tickets.
