|
cvs: pear /DBA DBA.php: msg#00665php.cvs.pear
busterb Sun Sep 29 22:52:02 2002 EDT Modified files: /pear/DBA DBA.php Log: added db2 support Index: pear/DBA/DBA.php diff -u pear/DBA/DBA.php:1.23 pear/DBA/DBA.php:1.24 --- pear/DBA/DBA.php:1.23 Thu Sep 26 08:59:51 2002 +++ pear/DBA/DBA.php Sun Sep 29 22:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA.php,v 1.23 2002/09/26 12:59:51 busterb Exp $ +// $Id: DBA.php,v 1.24 2002/09/30 02:52:01 busterb Exp $ // require_once('PEAR.php'); @@ -57,11 +57,11 @@ if (!function_exists('dba_open') || ($driver=='file')) { require_once 'DBA/Driver/File.php'; return new DBA_Driver_File(); - } elseif (($driver == 'db3') || ($driver == 'gdbm')) { + } elseif (in_array($driver, DBA::getDriverList()) { require_once 'DBA/Driver/Builtin.php'; return new DBA_Driver_Builtin($driver); } else { - return PEAR::raiseError('Unknown DBA driver, '.$driver); + return PEAR::raiseError('Unsupported DBA driver, '.$driver); } } @@ -94,7 +94,7 @@ */ function getDriverList() { - return array('gdbm', 'db3', 'file'); + return array('gdbm', 'db3', 'db2', 'file'); } } ?> -- PEAR CVS Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | cvs: pear /DBA/DBA/Driver Builtin.php: 00665, Brent Cook |
|---|---|
| Next by Date: | cvs: pear /DBA DBA.php: 00665, Brent Cook |
| Previous by Thread: | cvs: pear /DBA DBA.phpi: 00665, Brent Cook |
| Next by Thread: | cvs: pear /DBA DBA.php: 00665, Brent Cook |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |