From a61326c141816b5365613c206ef9ac350bfd9935 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 20 Dec 2012 13:51:37 -0500
Subject: [PATCH] Fix locking issue in SQLite driver (#1488874)

---
 program/lib/Roundcube/rcube_db.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/program/lib/Roundcube/rcube_db.php b/program/lib/Roundcube/rcube_db.php
index 47ddc81..9283bb0 100644
--- a/program/lib/Roundcube/rcube_db.php
+++ b/program/lib/Roundcube/rcube_db.php
@@ -400,6 +400,10 @@
 
         $this->debug($query);
 
+        // destroy reference to previous result, required for SQLite driver (#1488874)
+        $this->last_result = null;
+
+        // send query
         $query = $this->dbh->query($query);
 
         if ($query === false) {

--
Gitblit v1.9.1