Changeset 36df57c in github


Ignore:
Timestamp:
Nov 1, 2005 5:03:59 PM (8 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
fd660ac
Parents:
ccfda89
Message:

Edited MDB2 support

Location:
program/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/include/main.inc

    r7cc38e0 r36df57c  
    6565 
    6666  // we can use the database for storing session data 
    67   if (is_object($DB) && $DB->db_provider!='sqlite') 
     67  // session queries do not work with MDB2 
     68  if ($CONFIG['db_backend']!='mdb2' && is_object($DB) && $DB->db_provider!='sqlite') 
    6869    include_once('include/session.inc'); 
    6970 
  • program/include/rcube_mdb2.inc

    rccfda89 r36df57c  
    154154                $this->db_handle->row_limit = $numrows; 
    155155 
    156         $result = $this->db_handle->query($query,$params); 
    157         //$q = $this->db_handle->prepare($query); 
    158         //$q->bindParamArray($params); 
    159         //$result = $q->execute(); 
     156        //$result = $this->db_handle->query($query,$params); 
     157        $q = $this->db_handle->prepare($query); 
     158        $q->bindParamArray($params); 
     159        $result = $q->execute(); 
    160160 
    161161        if (PEAR::isError($result)) 
Note: See TracChangeset for help on using the changeset viewer.