[Vtigercrm-commits] [vtiger development] #6170: mysqlt driver fails with result is not an object

vtiger development vtiger-tickets at trac.vtiger.com
Thu Jul 16 15:43:58 EDT 2009


#6170: mysqlt driver fails with result is not an object
------------------------+---------------------------------------------------
 Reporter:  R.Cohen     |       Owner:  developer
     Type:  defect      |      Status:  new      
 Priority:  unassigned  |   Milestone:  5.1.0    
Component:  vtigercrm   |     Version:  5.1.0-rc 
 Keywords:              |  
------------------------+---------------------------------------------------
 Setting the database driver to mysqlt (for transaction support) causes an
 unhandled expection result is not an object in PearDatabase.php line 788.

 Cause for this exception are functions sql_escape_string and isMsql in
 /include/database/PearDatabase.php

 The code below has no default escape function and does not recognized
 'mysqlt' in isMySql() so the returned result is blank!
 {{{
 function sql_escape_string($str)
         {
                 if($this->isMySql())
                         $result_data = mysql_real_escape_string($str);
                 elseif($this->isPostgres())
                         $result_data = pg_escape_string($str);
                 return $result_data;
         }
 }}}

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6170>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list