Merge pull request #6445 from nextcloud/backport-6351-sql-syntax-on-caldav-11
[stable11] not to backquote LIMIT on CalDavBackend.php
This commit is contained in:
commit
3e56503e47
|
@ -1266,7 +1266,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
|||
|
||||
$query = "SELECT `uri`, `operation` FROM `*PREFIX*calendarchanges` WHERE `synctoken` >= ? AND `synctoken` < ? AND `calendarid` = ? ORDER BY `synctoken`";
|
||||
if ($limit>0) {
|
||||
$query.= " `LIMIT` " . (int)$limit;
|
||||
$query.= " LIMIT " . (int)$limit;
|
||||
}
|
||||
|
||||
// Fetching all changes
|
||||
|
|
Loading…
Reference in New Issue