#21117 [NEW]: DB_DataObjects Generator.php doesn't work with oci8 anylonger
| From: | bmichael at goldparrot dot com | Date: | Fri, 20 Dec 2002 18:05:54 +0000 |
| Subject: | #21117 [NEW]: DB_DataObjects Generator.php doesn't work with oci8 anylonger | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-11780@lists.php.net to get a copy of this message | ||
From: bmichael@goldparrot.com
Operating system: Windows XP
PHP version: 4.2.3
PHP Bug Type: PEAR related
Bug description: DB_DataObjects Generator.php doesn't work with oci8 anylonger
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 bug report at http://bugs.php.net/?id=21117&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21117&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21117&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21117&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21117&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21117&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21117&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21117&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21117&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21117&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21117&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21117&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21117&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21117&r=isapi