diff options
author | thomascube <thomas@roundcube.net> | 2005-11-01 21:52:01 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2005-11-01 21:52:01 +0000 |
commit | ccfda8966dc09337e642b246341f25ea7fe3d9ef (patch) | |
tree | 07a7a6fd43c7eb5e9c486f2de726cbbf45e5c400 /program/include/rcube_db.inc | |
parent | dba5f7c44a92c8e6986fa9395536347508145f60 (diff) |
Fixed session expiration issue with SQLite
Diffstat (limited to 'program/include/rcube_db.inc')
-rwxr-xr-x | program/include/rcube_db.inc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/program/include/rcube_db.inc b/program/include/rcube_db.inc index a987d2e84..684ed49b9 100755 --- a/program/include/rcube_db.inc +++ b/program/include/rcube_db.inc @@ -139,7 +139,7 @@ class rcube_db $result = $this->db_handle->limitQuery($query,$offset,$numrows,$params); } else - $result = $this->db_handle->query($query,$params); + $result = $this->db_handle->query($query, $params); if (DB::isError($result)) { @@ -147,7 +147,7 @@ class rcube_db 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__, - 'message' => $result->getMessage()), TRUE, FALSE); + 'message' => $result->getMessage().'; QUERY: '.$query), TRUE, FALSE); return false; } @@ -292,11 +292,9 @@ class rcube_db { if (!is_string($query)) return ($query); - - $search = array('/NOW\(\)/', - '/`/'); - $replace = array("datetime('now')", - '"'); + + $search = array('/NOW\(\)/i', '/`/'); + $replace = array("datetime('now')", '"'); $query = preg_replace($search, $replace, $query); return ($query); |