]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix sabredav for sqlite2
authorRobin Appelman <icewind1991@gmail.com>
Mon, 25 Jul 2011 01:13:29 +0000 (03:13 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Mon, 25 Jul 2011 01:14:22 +0000 (03:14 +0200)
lib/Connector/Sabre/locks.php

index 8414891b77850f8e80b5b73b6acf55eca1f3da4f..4f3eb7bbf525617324f7741e451479dbc1fb44bb 100644 (file)
@@ -51,7 +51,7 @@ class OC_Connector_Sabre_Locks extends Sabre_DAV_Locks_Backend_Abstract {
                // NOTE: the following 10 lines or so could be easily replaced by
                // pure sql. MySQL's non-standard string concatination prevents us
                // from doing this though.
-               $query = 'SELECT * FROM *PREFIX*locks WHERE userid = ? AND ((created + timeout) > CAST(? AS UNSIGNED INTEGER)) AND ((uri = ?)';
+               $query = 'SELECT * FROM *PREFIX*locks WHERE userid = ? AND (created + timeout) > ? AND ((uri = ?)';
                $params = array(OC_USER::getUser(),time(),$uri);
 
                // We need to check locks for every part in the uri.