Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
9a989a28
Commit
9a989a28
authored
13 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
fix sabredav for sqlite2
parent
3097e4f4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Connector/Sabre/locks.php
+1
-1
1 addition, 1 deletion
lib/Connector/Sabre/locks.php
with
1 addition
and
1 deletion
lib/Connector/Sabre/locks.php
+
1
−
1
View file @
9a989a28
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment