Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0b4

Bug #10027 fixes for PHP4 compatibility
Submitted: 2007-02-05 08:27 UTC
From: priyadi Assigned: quipo
Status: Closed Package: MDB2_Driver_sqlite (version 1.3.0)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2007-02-05 08:27 UTC] priyadi (Priyadi)
Description: ------------ the following is two liner fixes for PHP4 compatibility in createConstraint() and dropConstraint(). Test script: --------------- --- sqlite.php.orig 2006-11-21 17:13:05.000000000 +0700 +++ sqlite.php 2007-02-05 15:21:00.000000000 +0700 @@ -652,7 +652,7 @@ } if (!empty($definition['primary'])) { - return $db->alterTable($table, array(), false, array('primary' => $definition['fields'])); + return $db->manager->alterTable($table, array(), false, array('primary' => $definition['fields'])); } $table = $db->quoteIdentifier($table, true); @@ -697,7 +697,7 @@ } if ($primary || $name == 'PRIMARY') { - return $db->alterTable($table, array(), false, array('primary' => null)); + return $db->manager->alterTable($table, array(), false, array('primary' => null)); } $name = $db->getIndexName($name);

Comments

 [2007-03-04 23:50 UTC] quipo (Lorenzo Alberton)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.