Home » Database » DB_DataObject » Bug #9628
bug fix
Details
| Submitted | 2006-12-15 11:38 UTC |
|---|---|
| From | recca at seed dot net dot tw |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | 4.4.4 |
| Roadmaps | (Not assigned) |
Comments
[2006-12-15 11:38 UTC] recca at seed dot net dot tw
Description:
------------
line 1366 of Generator.php
current
$res = $__DB->queryAll('DESCRIBE ' . $table,DB_FETCHMODE_ASSOC);
fixed
$options = &PEAR::getStaticProperty('DB_DataObject','options');
$query_method = ( empty($options['db_driver']) ? 'getAll' : 'queryAll');
[2006-12-15 11:41 UTC] recca at seed dot net dot tw
line 1366 of Generator.php
current
$res = $__DB->queryAll('DESCRIBE ' . $table,DB_FETCHMODE_ASSOC);
fixed
$options = &PEAR::getStaticProperty('DB_DataObject','options');
$query_method = ( empty($options['db_driver']) ? 'getAll' :
'queryAll');
$res = $__DB->$query_method('DESCRIBE ' . $table,DB_FETCHMODE_ASSOC);
[2006-12-15 12:02 UTC] recca at seed dot net dot tw
fixed
$query_method = ($options['db_driver'] == 'DB')?'getAll':'queryAll');