Edited MDB2 support

release-0.6
thomascube 19 years ago
parent ccfda8966d
commit 36df57ce32

@ -64,7 +64,8 @@ function rcmail_startup($task='mail')
$DB->sqlite_initials = $INSTALL_PATH.'SQL/sqlite.initial.sql'; $DB->sqlite_initials = $INSTALL_PATH.'SQL/sqlite.initial.sql';
// we can use the database for storing session data // we can use the database for storing session data
if (is_object($DB) && $DB->db_provider!='sqlite') // session queries do not work with MDB2
if ($CONFIG['db_backend']!='mdb2' && is_object($DB) && $DB->db_provider!='sqlite')
include_once('include/session.inc'); include_once('include/session.inc');

@ -153,10 +153,10 @@ class rcube_db
$this->db_handle->row_offset = $offset; $this->db_handle->row_offset = $offset;
$this->db_handle->row_limit = $numrows; $this->db_handle->row_limit = $numrows;
$result = $this->db_handle->query($query,$params); //$result = $this->db_handle->query($query,$params);
//$q = $this->db_handle->prepare($query); $q = $this->db_handle->prepare($query);
//$q->bindParamArray($params); $q->bindParamArray($params);
//$result = $q->execute(); $result = $q->execute();
if (PEAR::isError($result)) if (PEAR::isError($result))
raise_error(array('code' => 500, raise_error(array('code' => 500,

Loading…
Cancel
Save