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

Request #3720 make the signature of autoExecute() PEAR::DB compatible
Submitted: 2005-03-06 08:32 UTC
From: akorthaus at web dot de Assigned:
Status: Closed Package: MDB2
PHP Version: 5.0.3 OS: Linux 2.4.28 (Gentoo)
Roadmaps: (Not assigned)    
Subscription  


 [2005-03-06 08:32 UTC] akorthaus at web dot de
Description: ------------ The Signature of autoExecute() was changed from PEAR::DB. From PEAR::DB: function autoExecute($table, $fields_values, $mode = DB_AUTOQUERY_INSERT, $where = false) And PEAR::MDB2: function &autoExecute($table, $fields_values, $types = null, $result_types = null, $mode = MDB2_AUTOQUERY_INSERT, $where = false, $result_class = true) If this would be something like: function &autoExecute($table, $fields_values, $mode = MDB2_AUTOQUERY_INSERT, $where = false, $types = null, $result_types = null, $result_class = true) this API would be compatible to existing PEAR::DB code. Also if you do do not want to use these new parameters you do not need to write ",NULL,NULL," between your parameter-list.

Comments

 [2005-03-06 15:55 UTC] smith at backendmedia dot com
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.