[limb-svn] r6958 - 3.x/trunk/limb/dbal/src/drivers/mysqli

svn at limb-project.com svn at limb-project.com
Fri Apr 25 16:41:59 MSD 2008


Author: korchasa
Date: 2008-04-25 16:41:59 +0400 (Fri, 25 Apr 2008)
New Revision: 6958
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6958

Modified:
   3.x/trunk/limb/dbal/src/drivers/mysqli/lmbMysqliConnection.class.php
Log:
-- fix for execute 'SET NAMES ...' by default execute method

Modified: 3.x/trunk/limb/dbal/src/drivers/mysqli/lmbMysqliConnection.class.php
===================================================================
--- 3.x/trunk/limb/dbal/src/drivers/mysqli/lmbMysqliConnection.class.php	2008-04-25 12:29:24 UTC (rev 6957)
+++ 3.x/trunk/limb/dbal/src/drivers/mysqli/lmbMysqliConnection.class.php	2008-04-25 12:41:59 UTC (rev 6958)
@@ -56,22 +56,22 @@
     $this->connectionId = mysqli_connect($this->config['host'],
                                         $this->config['user'],
                                         $this->config['password']);
-					
+
     if($this->connectionId === false)
     {
       $this->_raiseError();
     }
-    
+
     if(mysqli_select_db( $this->connectionId, $this->config['database']) === false)
     {
       $this->_raiseError();
     }
-    
+
     if(isset($this->config['charset']) && $charset = $this->config['charset'])
     {
-      mysqli_query($this->connectionId, "SET NAMES '$charset'");
+      $this->execute("SET NAMES '$charset'");
     }
-    
+
   }
 
   function __wakeup()
@@ -119,7 +119,7 @@
     }
     return $result;
   }
-  
+
   function executeStatement($stmt)
   {
     return (bool) $this->execute($stmt->getSQL());



More information about the limb-svn mailing list