#21117 [Asn->WFx]: DB_DataObjects Generator.php doesn't work with oci8 anylonger
| From: | alan_k@php.net | Date: | Mon, 24 Feb 2003 10:12:16 +0000 |
| Subject: | #21117 [Asn->WFx]: DB_DataObjects Generator.php doesn't work with oci8 anylonger | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13733@lists.php.net to get a copy of this message | ||
ID: 21117
Updated by: alan_k@php.net
Reported By: bmichael at goldparrot dot com
-Status: Assigned
+Status: Wont fix
Bug Type: PEAR related
Operating System: Windows XP
PHP Version: 4.2.3
Assigned To: alan_k
New Comment:
Patches very welcome - but for the time being since I dont have access
to oracle.. - or the desperate need for this fix - it's going as wont
fix..
Previous Comments:
------------------------------------------------------------------------
[2002-12-20 16:59:26] alan_k@php.net
Assigned - unless anybody else is going to fix :)
------------------------------------------------------------------------
[2002-12-20 12:05:54] bmichael at goldparrot dot com
In Generator.php:
$type and $flags are only in the mysql.php wrapper.
They are not in Oracle.
Has anyone tested with Oracle oci8?????
We are doing a project and are thinking of using the DB_DataObject
class heirarchy. Will I have to redo alot to get this to work???
Roughly lines 266 on.
//CODE BREAKS HERE
$this->_newConfig .= "{$t->name} = $type\n";
//$this->_newConfig->setValue("/{$this->table}",$t->name,
$type);
// i've no idea if this will work well on other databases?
// only use primary key, cause the setFrom blocks you
setting all key items...
if (preg_match("/primary/i",$t->flags)) {
$keys_out .= "{$t->name} = $type\n";
//$this->_newConfig->setValue("/{$this->table}__keys",$t->name,
$type);
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21117&edit=1