logo       
Google Custom Search
    AddThis Social Bookmark Button

db2 support for dba?: msg#00664

Subject: db2 support for dba?
Brent

Was there any reason not to support db2 in the dba module..?

I havent tested the above patch - more than load and create..

regards
alan
Index: DBA.php
===================================================================
RCS file: /repository/pear/DBA/DBA.php,v
retrieving revision 1.15
diff -u -r1.15 DBA.php
--- DBA.php     19 Jul 2002 06:55:35 -0000      1.15
+++ DBA.php     30 Jul 2002 13:54:19 -0000
@@ -48,7 +48,7 @@
         if (!function_exists('dba_open') || ($driver=='simple')) {
             require_once 'DB/DBA/DBA_Simple.php';
             return new DBA_Simple();
-        } elseif (($driver == 'db3') || ($driver == 'gdbm')){
+        } elseif (($driver == 'db3') || ($driver == 'db2') || ($driver == 
'gdbm')){
             require_once 'DB/DBA/DBA_Builtin.php';
             return new DBA_Builtin($driver);
         } else {
@@ -60,7 +60,7 @@
     {
         if (!function_exists('dba_open') || ($driver=='simple')) {
             return (file_exists($name.'.idx') && file_exists($name.'.dat'));
-        } elseif (($driver == 'db3') || ($driver == 'gdbm')){
+        } elseif (($driver == 'db3') || ($driver == 'db2') ||  ($driver == 
'gdbm')){
             return file_exists($name);
         } else {
             return PEAR::raiseError('Unknown DBA driver, '.$driver);

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>