[pLog-svn] r2175 - plog/trunk/class/database

oscar at devel.plogworld.net oscar at devel.plogworld.net
Mon Jun 6 21:25:49 GMT 2005


Author: oscar
Date: 2005-06-06 21:25:48 +0000 (Mon, 06 Jun 2005)
New Revision: 2175

Modified:
   plog/trunk/class/database/db.class.php
Log:
uncomment a few lines in this version of db.class.php if you're interested in testing pdb.


Modified: plog/trunk/class/database/db.class.php
===================================================================
--- plog/trunk/class/database/db.class.php	2005-06-06 21:21:33 UTC (rev 2174)
+++ plog/trunk/class/database/db.class.php	2005-06-06 21:25:48 UTC (rev 2175)
@@ -9,6 +9,7 @@
 	include_once( PLOG_CLASS_PATH."class/object/object.class.php" );
     include_once( PLOG_CLASS_PATH."class/config/configfilestorage.class.php" );
     include_once( PLOG_CLASS_PATH."class/database/adodb/adodb.inc.php" );
+    //include_once( PLOG_CLASS_PATH."class/database/pdb/pdb.class.php" );
 
     /**
 	 * \ingroup Database
@@ -32,7 +33,8 @@
             	// we need to connect to the db
                 $fileConfig = new ConfigFileStorage();
 
-                $db = NewADOConnection('mysql');
+				$db = NewADOConnection('mysql');
+                //$db = PDb::getDriver('mysql');
 
                 $username = $fileConfig->getValue( "db_username" );
                 $password = $fileConfig->getValue( "db_password" );
@@ -43,12 +45,13 @@
             		throw( new Exception( "Fatal error: could not connect to the database!" ));
                 	die();
             	}
-
-            	// just in case, forcing to use indexing by field name instead of
-            	// by field number
-            	$db->SetFetchMode( ADODB_FETCH_ASSOC );
+            	
+	           	// just in case, forcing to use indexing by field name instead of
+    	       	// by field number
+        	   	$db->SetFetchMode( ADODB_FETCH_ASSOC );       	
+        	   	// comment out the line above if you're planning to test pdb
             }
-
+            
             return $db;
 		}
 




More information about the pLog-svn mailing list