Skip to content
Snippets Groups Projects
Commit 9a989a28 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix sabredav for sqlite2

parent 3097e4f4
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment