summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Migration/BuildCalendarSearchIndex.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/Migration/BuildCalendarSearchIndex.php')
-rw-r--r--apps/dav/lib/Migration/BuildCalendarSearchIndex.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Migration/BuildCalendarSearchIndex.php b/apps/dav/lib/Migration/BuildCalendarSearchIndex.php
index da4b4f4fe84..22274e36c6b 100644
--- a/apps/dav/lib/Migration/BuildCalendarSearchIndex.php
+++ b/apps/dav/lib/Migration/BuildCalendarSearchIndex.php
@@ -70,7 +70,7 @@ class BuildCalendarSearchIndex implements IRepairStep {
}
$query = $this->db->getQueryBuilder();
- $query->select($query->createFunction('MAX(id)'))
+ $query->select($query->createFunction('MAX(' . $query->getColumnName('id') . ')'))
->from('calendarobjects');
$maxId = (int)$query->execute()->fetchColumn();