php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21117 DB_DataObjects Generator.php doesn't work with oci8 anylonger
Submitted: 2002-12-20 12:05 UTC Modified: 2003-02-24 04:12 UTC
From: bmichael at goldparrot dot com Assigned: alan_k (profile)
Status: Wont fix Package: PEAR related
PHP Version: 4.2.3 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bmichael at goldparrot dot com
New email:
PHP Version: OS:

 

 [2002-12-20 12:05 UTC] 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);
            }

        }

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-20 16:59 UTC] alan_k@php.net
Assigned - unless anybody else is going to fix :)
 [2003-02-24 04:12 UTC] alan_k@php.net
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..

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 14:01:37 2025 UTC