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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 20:01:29 2024 UTC