cvs: pear /MDB2 package_fbsql.php package_ibase.php package_mssql.php package_mysql.php package_mysqli.php package_oci8.php package_pgsql.php
package_sqlite.php /MDB2/MDB2/Driver fbsql.php ibase.php mssql.php mysql.php mysqli.php oci8.php pgsql.php sqlite.php /MDB2/MDB2/Driver/Manager
ibase.php pgsql.php /MDB2/MDB2/Driver/Reverse ibase.php mysql.php mysqli.php pgsql.php sqlite.php /MDB2/MDB2/Wrapper peardb.php /MDB2/docs/examples
example.php example_php5.php /MDB2/tests MDB2_api_testcase.php MDB2_function_testcase.php MDB2_manager_testcase.php MDB2_reverse_testcase.php
MDB2_testcase.php MDB2_usage_testcase.php

From: Date: Mon, 02 Jan 2006 15:54:05 +0000
Subject: cvs: pear /MDB2 package_fbsql.php package_ibase.php package_mssql.php package_mysql.php package_mysqli.php package_oci8.php package_pgsql.php
package_sqlite.php /MDB2/MDB2/Driver fbsql.php ibase.php mssql.php mysql.php mysqli.php oci8.php pgsql.php sqlite.php /MDB2/MDB2/Driver/Manager
ibase.php pgsql.php /MDB2/MDB2/Driver/Reverse ibase.php mysql.php mysqli.php pgsql.php sqlite.php /MDB2/MDB2/Wrapper peardb.php /MDB2/docs/examples
example.php example_php5.php /MDB2/tests MDB2_api_testcase.php MDB2_function_testcase.php MDB2_manager_testcase.php MDB2_reverse_testcase.php
MDB2_testcase.php MDB2_usage_testcase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-37252@lists.php.net to get a copy of this message
lsmith Mon Jan 2 15:54:05 2006 UTC Modified files: /pear/MDB2 package_fbsql.php package_ibase.php package_mssql.php package_mysql.php package_mysqli.php package_oci8.php package_pgsql.php package_sqlite.php /pear/MDB2/docs/examples example.php example_php5.php /pear/MDB2/MDB2/Driver fbsql.php ibase.php mssql.php mysql.php mysqli.php oci8.php pgsql.php sqlite.php /pear/MDB2/MDB2/Driver/Manager ibase.php pgsql.php /pear/MDB2/MDB2/Driver/Reverse ibase.php mysql.php mysqli.php pgsql.php sqlite.php /pear/MDB2/MDB2/Wrapper peardb.php /pear/MDB2/tests MDB2_api_testcase.php MDB2_function_testcase.php MDB2_manager_testcase.php MDB2_reverse_testcase.php MDB2_testcase.php MDB2_usage_testcase.php Log: - explicitly pass if the module is phptype specific in all loadModule calls (bug #6226)

http://cvs.php.net/viewcvs.cgi/pear/MDB2/package_fbsql.php?r1=1.18&r2=1.19&diff_format=u Index: pear/MDB2/package_fbsql.php diff -u pear/MDB2/package_fbsql.php:1.18 pear/MDB2/package_fbsql.php:1.19 --- pear/MDB2/package_fbsql.php:1.18 Tue Dec 27 10:27:58 2005 +++ pear/MDB2/package_fbsql.php Mon Jan 2 15:54:04 2006 @@ -23,6 +23,7 @@ - changed 'len' to 'length' in tableInfo() output *BC BREAK* - fixed 'change' in alterTable() - proper quote new table name in alterTable() +- explicitly pass if the module is phptype specific in all loadModule calls (bug #6226) open todo items: - this driver needs a serious update as it's currently unmaintained/untested http://cvs.php.net/viewcvs.cgi/pear/MDB2/package_ibase.php?r1=1.28&r2=1.29&diff_format=u Index: pear/MDB2/package_ibase.php diff -u pear/MDB2/package_ibase.php:1.28 pear/MDB2/package_ibase.php:1.29 --- pear/MDB2/package_ibase.php:1.28 Mon Dec 26 19:48:52 2005 +++ pear/MDB2/package_ibase.php Mon Jan 2 15:54:04 2006 @@ -9,6 +9,7 @@ and therefore always uses the destructor - fixed typo in _execute() that would lead to using the wrong types inside the result object - use proper error code in alterTable() +- explicitly pass if the module is phptype specific in all loadModule calls (bug #6226) open todo items: - handle autoincremement fields in alterTable() http://cvs.php.net/viewcvs.cgi/pear/MDB2/package_mssql.php?r1=1.18&r2=1.19&diff_format=u Index: pear/MDB2/package_mssql.php diff -u pear/MDB2/package_mssql.php:1.18 pear/MDB2/package_mssql.php:1.19 --- pear/MDB2/package_mssql.php:1.18 Mon Dec 26 19:48:52 2005 +++ pear/MDB2/package_mssql.php Mon Jan 2 15:54:04 2006 @@ -21,6 +21,7 @@ - cleanup _checkSequence() method to not raise errors when no table was found - added 'mdbtype' to tableInfo() output - changed 'len' to 'length' in tableInfo() output *BC BREAK* +- explicitly pass if the module is phptype specific in all loadModule calls (bug #6226) open todo items: - added missing index/contraint methods to the manager and reverse module methods http://cvs.php.net/viewcvs.cgi/pear/MDB2/package_mysql.php?r1=1.20&r2=1.21&diff_format=u Index: pear/MDB2/package_mysql.php diff -u pear/MDB2/package_mysql.php:1.20 pear/MDB2/package_mysql.php:1.21 --- pear/MDB2/package_mysql.php:1.20 Fri Dec 30 11:02:54 2005 +++ pear/MDB2/package_mysql.php Mon Jan 2 15:54:04 2006 @@ -2,9 +2,9 @@ require_once 'PEAR/PackageFileManager.php'; -$version = '0.2.2'; +$version = '0.2.3'; $notes = <<<EOT -- fixed typo in sub select detection +- explicitly pass if the module is phptype specific in all loadModule calls (bug #6226) EOT; $package = new PEAR_PackageFileManager(); http://cvs.php.net/viewcvs.cgi/pear/MDB2/package_mysqli.php?r1=1.22&r2=1.23&diff_format=u Index: pear/MDB2/package_mysqli.php diff -u pear/MDB2/package_mysqli.php:1.22 pear/MDB2/package_mysqli.php:1.23 --- pear/MDB2/package_mysqli.php:1.22 Fri Dec 30 11:02:54 2005 +++ pear/MDB2/package_mysqli.php Mon Jan 2 15:54:04 2006 @@ -2,10 +2,9 @@ require_once 'PEAR/PackageFileManager.php'; -$version = '0.2.2'; +$version = '0.2.3'; $notes = <<<EOT -- moved state to beta -- fixed typo in sub select detection +- explicitly pass if the module is phptype specific in all loadModule calls (bug #6226) open todo item: - use native prepared queries for prepared SELECT statements http://cvs.php.net/viewcvs.cgi/pear/MDB2/package_oci8.php?r1=1.24&r2=1.25&diff_format=u Index: pear/MDB2/package_oci8.php diff -u pear/MDB2/package_oci8.php:1.24 pear/MDB2/package_oci8.php:1.25 --- pear/MDB2/package_oci8.php:1.24 Fri Dec 30 10:45:33 2005 +++ pear/MDB2/package_oci8.php Mon Jan 2 15:54:04 2006 @@ -2,9 +2,9 @@ require_once 'PEAR/PackageFileManager.php'; -$version = '0.2.2'; +$version = '0.2.3'; $notes = <<<EOT -- types can now always be keyed by name or by order +- explicitly pass if the module is phptype specific in all loadModule calls (bug #6226) open todo items: - handle autoincremement fields in alterTable() http://cvs.php.net/viewcvs.cgi/pear/MDB2/package_pgsql.php?r1=1.31&r2=1.32&diff_format=u Index: pear/MDB2/package_pgsql.php diff -u pear/MDB2/package_pgsql.php:1.31 pear/MDB2/package_pgsql.php:1.32 --- pear/MDB2/package_pgsql.php:1.31 Fri Dec 30 10:45:33 2005 +++ pear/MDB2/package_pgsql.php Mon Jan 2 15:54:04 2006 @@ -2,9 +2,9 @@ require_once 'PEAR/PackageFileManager.php'; -$version = '0.2.2'; +$version = '0.2.3'; $notes = <<<EOT -- types can now always be keyed by name or by order +- explicitly pass if the module is phptype specific in all loadModule calls (bug #6226) open todo items: - considering migrating away from OID's to bytea, since this is encourage http://cvs.php.net/viewcvs.cgi/pear/MDB2/package_sqlite.php?r1=1.23&r2=1.24&diff_format=u Index: pear/MDB2/package_sqlite.php diff -u pear/MDB2/package_sqlite.php:1.23 pear/MDB2/package_sqlite.php:1.24 --- pear/MDB2/package_sqlite.php:1.23 Wed Dec 28 11:18:22 2005 +++ pear/MDB2/package_sqlite.php Mon Jan 2 15:54:04 2006 @@ -2,9 +2,9 @@ require_once 'PEAR/PackageFileManager.php'; -$version = '0.2.2'; +$version = '0.2.3'; $notes = <<<EOT -- fixed handling of autoincrement in the datatype module +- explicitly pass if the module is phptype specific in all loadModule calls (bug #6226) open todo items: - a number of the manager test cases fail because sqlite does not support adding http://cvs.php.net/viewcvs.cgi/pear/MDB2/docs/examples/example.php?r1=1.19&r2=1.20&diff_format=u Index: pear/MDB2/docs/examples/example.php diff -u pear/MDB2/docs/examples/example.php:1.19 pear/MDB2/docs/examples/example.php:1.20 --- pear/MDB2/docs/examples/example.php:1.19 Thu Dec 29 08:35:22 2005 +++ pear/MDB2/docs/examples/example.php Mon Jan 2 15:54:04 2006 @@ -1,6 +1,6 @@ <?php - // $Id: example.php,v 1.19 2005/12/29 08:35:22 lsmith Exp $ + // $Id: example.php,v 1.20 2006/01/02 15:54:04 lsmith Exp $ // // MDB2 and MDB2_Schema example script. // @@ -96,7 +96,7 @@ echo(Var_Dump($array).'<br>'); // run the query and get a result handler $result = $mdb2->query($query); - Var_Dump($mdb2->loadModule('Reverse')); + Var_Dump($mdb2->loadModule('Reverse', null, true)); echo('tableInfo:<br>'); echo(Var_Dump($mdb2->reverse->tableInfo($result)).'<br>'); $types = array('integer', 'text', 'timestamp'); @@ -111,14 +111,14 @@ echo('<br>all with just one call:<br>'); echo(Var_Dump($array).'<br>'); // run the query with the offset 1 and count 1 and get a result handler - Var_Dump($mdb2->loadModule('Extended')); + Var_Dump($mdb2->loadModule('Extended', null, false)); $result = $mdb2->extended->limitQuery($query, null, 1, 1); // lets just get everything but with an associative array and free the result $array = $result->fetchAll(MDB2_FETCHMODE_ASSOC); echo('<br>associative array with offset 1 and count 1:<br>'); echo(Var_Dump($array).'<br>'); // lets create a sequence - echo(Var_Dump($mdb2->loadModule('Manager'))); + echo(Var_Dump($mdb2->loadModule('Manager', null, true))); echo('<br>create a new seq with start 3 name real_funky_id<br>'); $err = $mdb2->manager->createSequence('real_funky_id', 3); if (PEAR::isError($err)) { http://cvs.php.net/viewcvs.cgi/pear/MDB2/docs/examples/example_php5.php?r1=1.4&r2=1.5&diff_format=u Index: pear/MDB2/docs/examples/example_php5.php diff -u pear/MDB2/docs/examples/example_php5.php:1.4 pear/MDB2/docs/examples/example_php5.php:1.5 --- pear/MDB2/docs/examples/example_php5.php:1.4 Thu Dec 29 21:49:13 2005 +++ pear/MDB2/docs/examples/example_php5.php Mon Jan 2 15:54:04 2006 @@ -42,7 +42,7 @@ // create a table // since we are on php5 we can use the magic __call() method to: -// - load the manager module: $mdb2->loadModule('Manager'); +// - load the manager module: $mdb2->loadModule('Manager', null, true); // - redirect the method call to the manager module: $mdb2->manager->createTable('sometable', $fields); $mdb2->mgCreateTable($table, $fields); http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/fbsql.php?r1=1.82&r2=1.83&diff_format=u Index: pear/MDB2/MDB2/Driver/fbsql.php diff -u pear/MDB2/MDB2/Driver/fbsql.php:1.82 pear/MDB2/MDB2/Driver/fbsql.php:1.83 --- pear/MDB2/MDB2/Driver/fbsql.php:1.82 Wed Dec 28 10:14:57 2005 +++ pear/MDB2/MDB2/Driver/fbsql.php Mon Jan 2 15:54:04 2006 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: fbsql.php,v 1.82 2005/12/28 10:14:57 lsmith Exp $ +// $Id: fbsql.php,v 1.83 2006/01/02 15:54:04 lsmith Exp $ // /** @@ -415,7 +415,7 @@ $this->popExpect(); if (PEAR::isError($result)) { if ($ondemand && $result->getCode() == MDB2_ERROR_NOSUCHTABLE) { - $this->loadModule('Manager'); + $this->loadModule('Manager', null, true); // Since we are creating the sequence on demand // we know the first id = 1 so initialize the // sequence at 2 http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/ibase.php?r1=1.124&r2=1.125&diff_format=u Index: pear/MDB2/MDB2/Driver/ibase.php diff -u pear/MDB2/MDB2/Driver/ibase.php:1.124 pear/MDB2/MDB2/Driver/ibase.php:1.125 --- pear/MDB2/MDB2/Driver/ibase.php:1.124 Wed Dec 28 17:21:32 2005 +++ pear/MDB2/MDB2/Driver/ibase.php Mon Jan 2 15:54:04 2006 @@ -43,7 +43,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.124 2005/12/28 17:21:32 lsmith Exp $ +// $Id: ibase.php,v 1.125 2006/01/02 15:54:04 lsmith Exp $ /** * MDB2 FireBird/InterBase driver @@ -698,7 +698,7 @@ $this->popExpect(); if (PEAR::isError($result)) { if ($ondemand) { - $this->loadModule('Manager'); + $this->loadModule('Manager', null, true); // Since we are creating the sequence on demand // we know the first id = 1 so initialize the // sequence at 2 http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/mssql.php?r1=1.95&r2=1.96&diff_format=u Index: pear/MDB2/MDB2/Driver/mssql.php diff -u pear/MDB2/MDB2/Driver/mssql.php:1.95 pear/MDB2/MDB2/Driver/mssql.php:1.96 --- pear/MDB2/MDB2/Driver/mssql.php:1.95 Wed Dec 28 10:14:57 2005 +++ pear/MDB2/MDB2/Driver/mssql.php Mon Jan 2 15:54:04 2006 @@ -43,7 +43,7 @@ // | Author: Frank M. Kromann <frank@kromann.info> | // +----------------------------------------------------------------------+ // -// $Id: mssql.php,v 1.95 2005/12/28 10:14:57 lsmith Exp $ +// $Id: mssql.php,v 1.96 2006/01/02 15:54:04 lsmith Exp $ // // {{{ Class MDB2_Driver_mssql /** @@ -467,7 +467,7 @@ $this->popExpect(); if (PEAR::isError($result)) { if ($ondemand && !$this->_checkSequence($sequence_name)) { - $this->loadModule('Manager'); + $this->loadModule('Manager', null, true); // Since we are creating the sequence on demand // we know the first id = 1 so initialize the // sequence at 2 http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/mysql.php?r1=1.90&r2=1.91&diff_format=u Index: pear/MDB2/MDB2/Driver/mysql.php diff -u pear/MDB2/MDB2/Driver/mysql.php:1.90 pear/MDB2/MDB2/Driver/mysql.php:1.91 --- pear/MDB2/MDB2/Driver/mysql.php:1.90 Fri Dec 30 11:00:49 2005 +++ pear/MDB2/MDB2/Driver/mysql.php Mon Jan 2 15:54:04 2006 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.90 2005/12/30 11:00:49 lsmith Exp $ +// $Id: mysql.php,v 1.91 2006/01/02 15:54:04 lsmith Exp $ // /** @@ -712,7 +712,7 @@ $this->popExpect(); if (PEAR::isError($result)) { if ($ondemand && $result->getCode() == MDB2_ERROR_NOSUCHTABLE) { - $this->loadModule('Manager'); + $this->loadModule('Manager', null, true); // Since we are creating the sequence on demand // we know the first id = 1 so initialize the // sequence at 2 http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/mysqli.php?r1=1.62&r2=1.63&diff_format=u Index: pear/MDB2/MDB2/Driver/mysqli.php diff -u pear/MDB2/MDB2/Driver/mysqli.php:1.62 pear/MDB2/MDB2/Driver/mysqli.php:1.63 --- pear/MDB2/MDB2/Driver/mysqli.php:1.62 Fri Dec 30 11:00:49 2005 +++ pear/MDB2/MDB2/Driver/mysqli.php Mon Jan 2 15:54:04 2006 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.62 2005/12/30 11:00:49 lsmith Exp $ +// $Id: mysqli.php,v 1.63 2006/01/02 15:54:04 lsmith Exp $ // /** @@ -803,7 +803,7 @@ $this->popExpect(); if (PEAR::isError($result)) { if ($ondemand && $result->getCode() == MDB2_ERROR_NOSUCHTABLE) { - $this->loadModule('Manager'); + $this->loadModule('Manager', null, true); // Since we are creating the sequence on demand // we know the first id = 1 so initialize the // sequence at 2 http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/oci8.php?r1=1.112&r2=1.113&diff_format=u Index: pear/MDB2/MDB2/Driver/oci8.php diff -u pear/MDB2/MDB2/Driver/oci8.php:1.112 pear/MDB2/MDB2/Driver/oci8.php:1.113 --- pear/MDB2/MDB2/Driver/oci8.php:1.112 Thu Dec 29 18:25:07 2005 +++ pear/MDB2/MDB2/Driver/oci8.php Mon Jan 2 15:54:04 2006 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ -// $Id: oci8.php,v 1.112 2005/12/29 18:25:07 lsmith Exp $ +// $Id: oci8.php,v 1.113 2006/01/02 15:54:04 lsmith Exp $ /** * MDB2 OCI8 driver @@ -733,7 +733,7 @@ $this->popExpect(); if (PEAR::isError($result)) { if ($ondemand && $result->getCode() == MDB2_ERROR_NOSUCHTABLE) { - $this->loadModule('Manager'); + $this->loadModule('Manager', null, true); $result = $this->manager->createSequence($seq_name, 1); if (PEAR::isError($result)) { return $result; http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/pgsql.php?r1=1.88&r2=1.89&diff_format=u Index: pear/MDB2/MDB2/Driver/pgsql.php diff -u pear/MDB2/MDB2/Driver/pgsql.php:1.88 pear/MDB2/MDB2/Driver/pgsql.php:1.89 --- pear/MDB2/MDB2/Driver/pgsql.php:1.88 Thu Dec 29 18:25:07 2005 +++ pear/MDB2/MDB2/Driver/pgsql.php Mon Jan 2 15:54:04 2006 @@ -43,7 +43,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.88 2005/12/29 18:25:07 lsmith Exp $ +// $Id: pgsql.php,v 1.89 2006/01/02 15:54:04 lsmith Exp $ /** * MDB2 PostGreSQL driver @@ -587,7 +587,7 @@ $is_manip = ($result_types === MDB2_PREPARE_MANIP); $this->debug($query, 'prepare'); if (!empty($types)) { - $this->loadModule('Datatype'); + $this->loadModule('Datatype', null, true); } $query = $this->_modifyQuery($query, $is_manip, $this->row_limit, $this->row_offset); $placeholder_type_guess = $placeholder_type = null; @@ -711,7 +711,7 @@ $this->popExpect(); if (PEAR::isError($result)) { if ($ondemand && $result->getCode() == MDB2_ERROR_NOSUCHTABLE) { - $this->loadModule('Manager'); + $this->loadModule('Manager', null, true); $result = $this->manager->createSequence($seq_name, 1); if (PEAR::isError($result)) { return $this->raiseError(MDB2_ERROR, null, null, http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/sqlite.php?r1=1.91&r2=1.92&diff_format=u Index: pear/MDB2/MDB2/Driver/sqlite.php diff -u pear/MDB2/MDB2/Driver/sqlite.php:1.91 pear/MDB2/MDB2/Driver/sqlite.php:1.92 --- pear/MDB2/MDB2/Driver/sqlite.php:1.91 Wed Dec 28 10:14:57 2005 +++ pear/MDB2/MDB2/Driver/sqlite.php Mon Jan 2 15:54:04 2006 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: sqlite.php,v 1.91 2005/12/28 10:14:57 lsmith Exp $ +// $Id: sqlite.php,v 1.92 2006/01/02 15:54:04 lsmith Exp $ // /** @@ -614,7 +614,7 @@ $this->popExpect(); if (PEAR::isError($result)) { if ($ondemand && $result->getCode() == MDB2_ERROR_NOSUCHTABLE) { - $this->loadModule('Manager'); + $this->loadModule('Manager', null, true); // Since we are creating the sequence on demand // we know the first id = 1 so initialize the // sequence at 2 http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/Manager/ibase.php?r1=1.69&r2=1.70&diff_format=u Index: pear/MDB2/MDB2/Driver/Manager/ibase.php diff -u pear/MDB2/MDB2/Driver/Manager/ibase.php:1.69 pear/MDB2/MDB2/Driver/Manager/ibase.php:1.70 --- pear/MDB2/MDB2/Driver/Manager/ibase.php:1.69 Wed Dec 28 10:14:57 2005 +++ pear/MDB2/MDB2/Driver/Manager/ibase.php Mon Jan 2 15:54:05 2006 @@ -42,7 +42,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.69 2005/12/28 10:14:57 lsmith Exp $ +// $Id: ibase.php,v 1.70 2006/01/02 15:54:05 lsmith Exp $ require_once 'MDB2/Driver/Manager/Common.php'; @@ -461,7 +461,7 @@ if ($query) { $query.= ', '; } - $db->loadModule('Datatype'); + $db->loadModule('Datatype', null, true); $field_name = $db->quoteIdentifier($field_name, true); $query.= 'ALTER ' . $field_name.' TYPE ' . $db->datatype->getTypeDeclaration($field['definition']); } http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/Manager/pgsql.php?r1=1.51&r2=1.52&diff_format=u Index: pear/MDB2/MDB2/Driver/Manager/pgsql.php diff -u pear/MDB2/MDB2/Driver/Manager/pgsql.php:1.51 pear/MDB2/MDB2/Driver/Manager/pgsql.php:1.52 --- pear/MDB2/MDB2/Driver/Manager/pgsql.php:1.51 Tue Dec 27 10:25:20 2005 +++ pear/MDB2/MDB2/Driver/Manager/pgsql.php Mon Jan 2 15:54:05 2006 @@ -42,7 +42,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.51 2005/12/27 10:25:20 lsmith Exp $ +// $Id: pgsql.php,v 1.52 2006/01/02 15:54:05 lsmith Exp $ require_once 'MDB2/Driver/Manager/Common.php'; @@ -239,7 +239,7 @@ foreach ($changes['change'] as $field_name => $field) { $field_name = $db->quoteIdentifier($field_name, true); if (array_key_exists('type', $field)) { - $db->loadModule('Datatype'); + $db->loadModule('Datatype', null, true); $query.= "ALTER $field_name TYPE ".$db->datatype->getTypeDeclaration($field['definition']); $result = $db->exec("ALTER TABLE $name $query"); if (PEAR::isError($result)) { http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/Reverse/ibase.php?r1=1.32&r2=1.33&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/ibase.php diff -u pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.32 pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.33 --- pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.32 Sat Dec 24 09:57:50 2005 +++ pear/MDB2/MDB2/Driver/Reverse/ibase.php Mon Jan 2 15:54:05 2006 @@ -42,7 +42,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.32 2005/12/24 09:57:50 lsmith Exp $ +// $Id: ibase.php,v 1.33 2006/01/02 15:54:05 lsmith Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -136,7 +136,7 @@ return $db; } - $result = $db->loadModule('Datatype'); + $result = $db->loadModule('Datatype', null, true); if (PEAR::isError($result)) { return $result; } @@ -420,7 +420,7 @@ $res['num_fields'] = $count; } - $db->loadModule('Datatype'); + $db->loadModule('Datatype', null, true); for ($i = 0; $i < $count; $i++) { $info = @ibase_field_info($id, $i); $res[$i] = array( http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/Reverse/mysql.php?r1=1.39&r2=1.40&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/mysql.php diff -u pear/MDB2/MDB2/Driver/Reverse/mysql.php:1.39 pear/MDB2/MDB2/Driver/Reverse/mysql.php:1.40 --- pear/MDB2/MDB2/Driver/Reverse/mysql.php:1.39 Thu Dec 15 22:52:56 2005 +++ pear/MDB2/MDB2/Driver/Reverse/mysql.php Mon Jan 2 15:54:05 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.39 2005/12/15 22:52:56 lsmith Exp $ +// $Id: mysql.php,v 1.40 2006/01/02 15:54:05 lsmith Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -73,7 +73,7 @@ return $db; } - $result = $db->loadModule('Datatype'); + $result = $db->loadModule('Datatype', null, true); if (PEAR::isError($result)) { return $result; } @@ -347,7 +347,7 @@ $res['num_fields'] = $count; } - $db->loadModule('Datatype'); + $db->loadModule('Datatype', null, true); for ($i = 0; $i < $count; $i++) { $res[$i] = array( 'table' => $case_func(@mysql_field_table($id, $i)), http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/Reverse/mysqli.php?r1=1.25&r2=1.26&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/mysqli.php diff -u pear/MDB2/MDB2/Driver/Reverse/mysqli.php:1.25 pear/MDB2/MDB2/Driver/Reverse/mysqli.php:1.26 --- pear/MDB2/MDB2/Driver/Reverse/mysqli.php:1.25 Thu Dec 15 22:52:56 2005 +++ pear/MDB2/MDB2/Driver/Reverse/mysqli.php Mon Jan 2 15:54:05 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.25 2005/12/15 22:52:56 lsmith Exp $ +// $Id: mysqli.php,v 1.26 2006/01/02 15:54:05 lsmith Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -129,7 +129,7 @@ return $db; } - $result = $db->loadModule('Datatype'); + $result = $db->loadModule('Datatype', null, true); if (PEAR::isError($result)) { return $result; } @@ -399,7 +399,7 @@ $res['num_fields'] = $count; } - $db->loadModule('Datatype'); + $db->loadModule('Datatype', null, true); for ($i = 0; $i < $count; $i++) { $tmp = @mysqli_fetch_field($id); http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/Reverse/pgsql.php?r1=1.35&r2=1.36&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/pgsql.php diff -u pear/MDB2/MDB2/Driver/Reverse/pgsql.php:1.35 pear/MDB2/MDB2/Driver/Reverse/pgsql.php:1.36 --- pear/MDB2/MDB2/Driver/Reverse/pgsql.php:1.35 Sat Dec 24 12:49:12 2005 +++ pear/MDB2/MDB2/Driver/Reverse/pgsql.php Mon Jan 2 15:54:05 2006 @@ -42,7 +42,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.35 2005/12/24 12:49:12 lsmith Exp $ +// $Id: pgsql.php,v 1.36 2006/01/02 15:54:05 lsmith Exp $ require_once 'MDB2/Driver/Reverse/Common.php'; @@ -72,7 +72,7 @@ return $db; } - $result = $db->loadModule('Datatype'); + $result = $db->loadModule('Datatype', null, true); if (PEAR::isError($result)) { return $result; } @@ -161,7 +161,7 @@ 'getTableIndexDefinition: it was not specified an existing table index'); } - $db->loadModule('Manager'); + $db->loadModule('Manager', null, true); $columns = $db->manager->listTableFields($table); $definition = array(); @@ -203,7 +203,7 @@ 'getTableConstraintDefinition: it was not specified an existing table constraint'); } - $db->loadModule('Manager'); + $db->loadModule('Manager', null, true); $columns = $db->manager->listTableFields($table); $definition = array(); @@ -298,7 +298,7 @@ $res['num_fields'] = $count; } - $db->loadModule('Datatype'); + $db->loadModule('Datatype', null, true); for ($i = 0; $i < $count; $i++) { $res[$i] = array( 'table' => $got_string ? $case_func($result) : '', http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/Reverse/sqlite.php?r1=1.32&r2=1.33&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/sqlite.php diff -u pear/MDB2/MDB2/Driver/Reverse/sqlite.php:1.32 pear/MDB2/MDB2/Driver/Reverse/sqlite.php:1.33 --- pear/MDB2/MDB2/Driver/Reverse/sqlite.php:1.32 Mon Dec 26 12:29:19 2005 +++ pear/MDB2/MDB2/Driver/Reverse/sqlite.php Mon Jan 2 15:54:05 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: sqlite.php,v 1.32 2005/12/26 12:29:19 lsmith Exp $ +// $Id: sqlite.php,v 1.33 2006/01/02 15:54:05 lsmith Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -120,7 +120,7 @@ return $db; } - $result = $db->loadModule('Datatype'); + $result = $db->loadModule('Datatype', null, true); if (PEAR::isError($result)) { return $result; } @@ -356,7 +356,7 @@ $res['num_fields'] = $count; } - $db->loadModule('Datatype'); + $db->loadModule('Datatype', null, true); for ($i = 0; $i < $count; $i++) { if (strpos($id[$i]['type'], '(') !== false) { $bits = explode('(', $id[$i]['type']); http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Wrapper/peardb.php?r1=1.40&r2=1.41&diff_format=u Index: pear/MDB2/MDB2/Wrapper/peardb.php diff -u pear/MDB2/MDB2/Wrapper/peardb.php:1.40 pear/MDB2/MDB2/Wrapper/peardb.php:1.41 --- pear/MDB2/MDB2/Wrapper/peardb.php:1.40 Thu Dec 29 22:14:04 2005 +++ pear/MDB2/MDB2/Wrapper/peardb.php Mon Jan 2 15:54:05 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: peardb.php,v 1.40 2005/12/29 22:14:04 lsmith Exp $ +// $Id: peardb.php,v 1.41 2006/01/02 15:54:05 lsmith Exp $ // /** @@ -304,7 +304,7 @@ function tableInfo($mode = null) { - $this->result->db->loadModule('Reverse'); + $this->result->db->loadModule('Reverse', null, true); return $this->result->db->reverse->tableInfo($this->result, $mode); } @@ -447,21 +447,21 @@ function autoPrepare($table, $table_fields, $mode = MDB2_AUTOQUERY_INSERT, $where = false) { - $this->db_object->loadModule('Extended'); + $this->db_object->loadModule('Extended', null, false); // types return $this->db_object->extended->autoPrepare($table, $table_fields, $mode, $where); } function &autoExecute($table, $fields_values, $mode, $where) { - $this->db_object->loadModule('Extended'); + $this->db_object->loadModule('Extended', null, false); // types return $this->db_object->extended->autoExecute($table, $fields_values, $mode, $where); } function buildManipSQL($table, $table_fields, $mode, $where = false) { - $this->db_object->loadModule('Extended'); + $this->db_object->loadModule('Extended', null, false); return $this->db_object->extended->buildManipSQL($table, $table_fields, $mode, $where); } @@ -473,7 +473,7 @@ function executeMultiple($stmt, $data) { - $this->db_object->loadModule('Extended'); + $this->db_object->loadModule('Extended', null, false); return $this->db_object->extended->executeMultiple($stmt, null, $data); } @@ -668,13 +668,13 @@ function createSequence($seq_name) { - $this->db_object->loadModule('Manager'); + $this->db_object->loadModule('Manager', null, true); return $this->db_object->manager->createSequence($seq_name, 1); } function dropSequence($seq_name) { - $this->db_object->loadModule('Manager'); + $this->db_object->loadModule('Manager', null, true); return $this->db_object->manager->dropSequence($seq_name); } @@ -731,7 +731,7 @@ { $result = $this->_wrapResource($result); if (is_string($result) || MDB2::isResultCommon($result)) { - $this->db_object->loadModule('Reverse'); + $this->db_object->loadModule('Reverse', null, true); return $this->db_object->reverse->tableInfo($result, $mode); } return $result->tableInfo($mode); @@ -744,7 +744,7 @@ function getListOf($type) { - $this->db_object->loadModule('Manager'); + $this->db_object->loadModule('Manager', null, true); switch ($type) { case 'tables': return $this->db_object->manager->listTables(); http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_api_testcase.php?r1=1.15&r2=1.16&diff_format=u Index: pear/MDB2/tests/MDB2_api_testcase.php diff -u pear/MDB2/tests/MDB2_api_testcase.php:1.15 pear/MDB2/tests/MDB2_api_testcase.php:1.16 --- pear/MDB2/tests/MDB2_api_testcase.php:1.15 Wed Dec 14 12:10:20 2005 +++ pear/MDB2/tests/MDB2_api_testcase.php Mon Jan 2 15:54:05 2006 @@ -41,7 +41,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_api_testcase.php,v 1.15 2005/12/14 12:10:20 dufuz Exp $ +// $Id: MDB2_api_testcase.php,v 1.16 2006/01/02 15:54:05 lsmith Exp $ require_once 'MDB2_testcase.php'; @@ -79,7 +79,7 @@ if (!$this->methodExists($this->db, 'loadModule')) { return; } - $this->assertTrue(!PEAR::isError($this->db->loadModule('Manager'))); + $this->assertTrue(!PEAR::isError($this->db->loadModule('Manager', null, true))); } // test of the driver http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_function_testcase.php?r1=1.11&r2=1.12&diff_format=u Index: pear/MDB2/tests/MDB2_function_testcase.php diff -u pear/MDB2/tests/MDB2_function_testcase.php:1.11 pear/MDB2/tests/MDB2_function_testcase.php:1.12 --- pear/MDB2/tests/MDB2_function_testcase.php:1.11 Thu Dec 29 22:12:37 2005 +++ pear/MDB2/tests/MDB2_function_testcase.php Mon Jan 2 15:54:05 2006 @@ -41,13 +41,13 @@ // | Author: Lorenzo Alberton <l dot alberton at quipo dot it> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_function_testcase.php,v 1.11 2005/12/29 22:12:37 lsmith Exp $ +// $Id: MDB2_function_testcase.php,v 1.12 2006/01/02 15:54:05 lsmith Exp $ class MDB2_Function_TestCase extends MDB2_TestCase { function setUp() { parent::setUp(); - $this->db->loadModule('Function'); + $this->db->loadModule('Function', null, true); } /** http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_manager_testcase.php?r1=1.38&r2=1.39&diff_format=u Index: pear/MDB2/tests/MDB2_manager_testcase.php diff -u pear/MDB2/tests/MDB2_manager_testcase.php:1.38 pear/MDB2/tests/MDB2_manager_testcase.php:1.39 --- pear/MDB2/tests/MDB2_manager_testcase.php:1.38 Tue Dec 27 10:27:47 2005 +++ pear/MDB2/tests/MDB2_manager_testcase.php Mon Jan 2 15:54:05 2006 @@ -42,7 +42,7 @@ // | Lorenzo Alberton <l dot alberton at quipo dot it> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_manager_testcase.php,v 1.38 2005/12/27 10:27:47 lsmith Exp $ +// $Id: MDB2_manager_testcase.php,v 1.39 2006/01/02 15:54:05 lsmith Exp $ require_once 'MDB2_testcase.php'; @@ -52,7 +52,7 @@ function setUp() { parent::setUp(); - $this->db->loadModule('Manager'); + $this->db->loadModule('Manager', null, true); $this->fields = array( 'id' => array( 'type' => 'integer', http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_reverse_testcase.php?r1=1.22&r2=1.23&diff_format=u Index: pear/MDB2/tests/MDB2_reverse_testcase.php diff -u pear/MDB2/tests/MDB2_reverse_testcase.php:1.22 pear/MDB2/tests/MDB2_reverse_testcase.php:1.23 --- pear/MDB2/tests/MDB2_reverse_testcase.php:1.22 Sat Dec 24 09:56:12 2005 +++ pear/MDB2/tests/MDB2_reverse_testcase.php Mon Jan 2 15:54:05 2006 @@ -41,7 +41,7 @@ // | Author: Lorenzo Alberton <l dot alberton at quipo dot it> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_reverse_testcase.php,v 1.22 2005/12/24 09:56:12 lsmith Exp $ +// $Id: MDB2_reverse_testcase.php,v 1.23 2006/01/02 15:54:05 lsmith Exp $ require_once 'MDB2_testcase.php'; @@ -49,7 +49,7 @@ { function setUp() { parent::setUp(); - $this->db->loadModule('Reverse'); + $this->db->loadModule('Reverse', null, true); } /** @@ -131,7 +131,7 @@ } //setup - $this->db->loadModule('Manager'); + $this->db->loadModule('Manager', null, true); $fields = array( 'id' => array( 'type' => 'integer', @@ -208,7 +208,7 @@ */ function testGetSequenceDefinition() { //setup - $this->db->loadModule('Manager'); + $this->db->loadModule('Manager', null, true); $sequence = 'test_sequence'; $sequences = $this->db->manager->listSequences(); if (!in_array($sequence, $sequences)) { http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_testcase.php?r1=1.6&r2=1.7&diff_format=u Index: pear/MDB2/tests/MDB2_testcase.php diff -u pear/MDB2/tests/MDB2_testcase.php:1.6 pear/MDB2/tests/MDB2_testcase.php:1.7 --- pear/MDB2/tests/MDB2_testcase.php:1.6 Thu Dec 29 18:23:40 2005 +++ pear/MDB2/tests/MDB2_testcase.php Mon Jan 2 15:54:05 2006 @@ -41,7 +41,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_testcase.php,v 1.6 2005/12/29 18:23:40 lsmith Exp $ +// $Id: MDB2_testcase.php,v 1.7 2006/01/02 15:54:05 lsmith Exp $ class MDB2_TestCase extends PHPUnit_TestCase { //contains the dsn of the database we are testing @@ -150,7 +150,7 @@ } function tableExists($table) { - $this->db->loadModule('Manager'); + $this->db->loadModule('Manager', null, true); $tables = $this->db->manager->listTables(); return in_array(strtolower($table), array_map('strtolower', $tables)); } http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_usage_testcase.php?r1=1.48&r2=1.49&diff_format=u Index: pear/MDB2/tests/MDB2_usage_testcase.php diff -u pear/MDB2/tests/MDB2_usage_testcase.php:1.48 pear/MDB2/tests/MDB2_usage_testcase.php:1.49 --- pear/MDB2/tests/MDB2_usage_testcase.php:1.48 Mon Dec 26 16:33:26 2005 +++ pear/MDB2/tests/MDB2_usage_testcase.php Mon Jan 2 15:54:05 2006 @@ -41,7 +41,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_usage_testcase.php,v 1.48 2005/12/26 16:33:26 lsmith Exp $ +// $Id: MDB2_usage_testcase.php,v 1.49 2006/01/02 15:54:05 lsmith Exp $ require_once 'MDB2_testcase.php'; @@ -521,7 +521,7 @@ return; } - $this->db->loadModule('Manager'); + $this->db->loadModule('Manager', null, true); for ($start_value = 1; $start_value < 4; $start_value++) { $sequence_name = "test_sequence_$start_value";
« previous php.pear.cvs (#37252) next »