Merge pull request #6444 from nextcloud/backport-6351-sql-syntax-on-caldav

[stable12] not to backquote LIMIT on CalDavBackend.php
This commit is contained in:
Morris Jobke 2017-09-12 09:43:24 +02:00 committed by GitHub
commit c1690da20b
1 changed files with 1 additions and 1 deletions

View File

@ -1431,7 +1431,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