cvs: pear /DBA/DBA/Driver Builtin.php
| From: | Brent Cook | Date: | Mon, 30 Sep 2002 02:51:21 +0000 |
| Subject: | cvs: pear /DBA/DBA/Driver Builtin.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-6761@lists.php.net to get a copy of this message | ||
busterb Sun Sep 29 22:51:21 2002 EDT
Modified files:
/pear/DBA/DBA/Driver Builtin.php
Log:
added db2 support; dba_sync() on close
Index: pear/DBA/DBA/Driver/Builtin.php
diff -u pear/DBA/DBA/Driver/Builtin.php:1.6 pear/DBA/DBA/Driver/Builtin.php:1.7
--- pear/DBA/DBA/Driver/Builtin.php:1.6 Thu Sep 26 01:18:07 2002
+++ pear/DBA/DBA/Driver/Builtin.php Sun Sep 29 22:51:21 2002
@@ -18,7 +18,7 @@
// | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA|
// +----------------------------------------------------------------------+
//
-// $Id: Builtin.php,v 1.6 2002/09/26 05:18:07 busterb Exp $
+// $Id: Builtin.php,v 1.7 2002/09/30 02:51:21 busterb Exp $
require_once 'DBA.php';
@@ -27,12 +27,12 @@
* driver for a DBA class. Depending on the driver, this can be faster or
* slower than the DBA_Driver_File class.
*
- * This class has been tested with DB3 and GDBM. Other drivers may have quirks
- * that this class does not address yet. CDB is known to be unsuitable as a
- * driver due to its lack of writes. DB2 currently segfaults with PHP-CVS.
+ * This class has been tested with DB3 and GDBM and probably works with DB2.
+ * Other drivers may have quirks that this class does not address yet. CDB
+ * is known to be unsuitable as a driver due to its lack of write ability.
*
* @author Brent Cook <busterb@mail.utexas.edu>
- * @version 0.9.3
+ * @version 0.9.4
* @access public
* @package DBA
*/
@@ -163,6 +163,7 @@
if ($this->isOpen()) {
$this->_readable = false;
$this->_writable = false;
+ dba_sync($this->_dba); // db2 is known to require syncs
dba_close($this->_dba);
} else {
return $this->raiseError('No database was open');