summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2005-11-01 22:03:59 +0000
committerthomascube <thomas@roundcube.net>2005-11-01 22:03:59 +0000
commit36df57ce32ebad9416d78e4f86a41e5f1707f4ad (patch)
tree0fb56c8101464a2ed12f50e74f0b2b19a9cd6d12 /program/include
parentccfda8966dc09337e642b246341f25ea7fe3d9ef (diff)
Edited MDB2 support
Diffstat (limited to 'program/include')
-rw-r--r--program/include/main.inc3
-rwxr-xr-xprogram/include/rcube_mdb2.inc8
2 files changed, 6 insertions, 5 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 0ebbeaa5a..9248caa99 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -64,7 +64,8 @@ function rcmail_startup($task='mail')
$DB->sqlite_initials = $INSTALL_PATH.'SQL/sqlite.initial.sql';
// 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');
diff --git a/program/include/rcube_mdb2.inc b/program/include/rcube_mdb2.inc
index f87a9c029..f6fde8dd5 100755
--- a/program/include/rcube_mdb2.inc
+++ b/program/include/rcube_mdb2.inc
@@ -153,10 +153,10 @@ class rcube_db
$this->db_handle->row_offset = $offset;
$this->db_handle->row_limit = $numrows;
- $result = $this->db_handle->query($query,$params);
- //$q = $this->db_handle->prepare($query);
- //$q->bindParamArray($params);
- //$result = $q->execute();
+ //$result = $this->db_handle->query($query,$params);
+ $q = $this->db_handle->prepare($query);
+ $q->bindParamArray($params);
+ $result = $q->execute();
if (PEAR::isError($result))
raise_error(array('code' => 500,