Ignore:
Timestamp:
Mar 25, 2008 2:39:33 PM (5 years ago)
Author:
thomasb
Message:

Only emulate prepared queries in debug mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_mdb2.inc

    r1215 r1217  
    9797    // Use persistent connections if available 
    9898    $dbh = MDB2::connect($dsn, array( 
    99         'emulate_prepared' => true, 
    10099        'persistent' => $this->db_pconn, 
     100        'emulate_prepared' => $this->debug_mode, 
    101101        'debug' => $this->debug_mode, 
    102102        'debug_handler' => 'mdb2_debug_handler', 
     
    170170    $this->debug_mode = $dbg; 
    171171    if ($this->db_connected) 
     172    { 
    172173      $this->db_handle->setOption('debug', $dbg); 
     174      $this->db_handle->setOption('emulate_prepared', $dbg); 
     175    } 
    173176  } 
    174177 
Note: See TracChangeset for help on using the changeset viewer.