#21117 [Opn->Asn]: DB_DataObjects Generator.php doesn't work with oci8 anylonger

From: Date: Fri, 20 Dec 2002 22:59:27 +0000
Subject: #21117 [Opn->Asn]: 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-11781@lists.php.net to get a copy of this message
ID: 21117 Updated by: alan_k@php.net Reported By: bmichael@goldparrot.com -Status: Open +Status: Assigned Bug Type: PEAR related Operating System: Windows XP PHP Version: 4.2.3 -Assigned To: +Assigned To: alan_k New Comment: Assigned - unless anybody else is going to fix :) Previous Comments: ------------------------------------------------------------------------ [2002-12-20 12:05:54] bmichael@goldparrot.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

« previous php.pear.dev (#11781) next »