cvs: pear /MDB common.php
| From: | Lukas Smith | Date: | Wed, 29 May 2002 15:03:40 +0000 |
| Subject: | cvs: pear /MDB common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4270@lists.php.net to get a copy of this message | ||
lsmith Wed May 29 11:03:40 2002 EDT
Modified files:
/pear/MDB common.php
Log:
switched from $databases to $metabase_databases
Index: pear/MDB/common.php
diff -u pear/MDB/common.php:1.11 pear/MDB/common.php:1.12
--- pear/MDB/common.php:1.11 Wed May 29 09:57:50 2002
+++ pear/MDB/common.php Wed May 29 11:03:39 2002
@@ -13,11 +13,11 @@
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
-// | Authors: Lukas Smith <smith@dybnet.de> |
+// | Authors: Lukas Smith <smith@dybnet.de> |
// | |
// +----------------------------------------------------------------------+
//
-// $Id: common.php,v 1.11 2002/05/29 13:57:50 lsmith Exp $
+// $Id: common.php,v 1.12 2002/05/29 15:03:39 lsmith Exp $
//
// Base class for DB implementations.
//
@@ -37,24 +37,24 @@
$registered_transactions_shutdown = 0;
-function shutdownTransactions($databases_array = '')
+function shutdownTransactions($databases = '')
{
// BC support for Metabase
- if($databases_array == '')
+ if($databases == '')
{
- global $databases;
- $databases_array = $databases;
+ global $metabase_databases;
+ $databases = $metabase_databases;
}
- for(reset($databases_array), $i = 0, $j = count($databases_array);
+ for(reset($databases), $i = 0, $j = count($databases);
$i < $j;
- next($databases_array), ++$i)
+ next($databases), ++$i)
{
- $database = key($databases_array);
- if ($databases_array[$database]->in_transaction
- &&
!MDB::is_Error($databases_array[$database]->rollbackTransaction($database)))
+ $database = key($databases);
+ if ($databases[$database]->in_transaction
+ && !MDB::is_Error($databases[$database]->rollbackTransaction($database)))
{
- $databases_array[$database]->autoCommitTransactions($database,1);
+ $databases[$database]->autoCommitTransactions($database,1);
}
}
}
@@ -1681,4 +1681,4 @@
}
};
-?>\ No newline at end of file
+?>
\ No newline at end of file