diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-16 14:55:41 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-10-16 15:24:02 +0200 |
commit | b458ed9c82eeca4eafb4e86b7774ceba90130838 (patch) | |
tree | 2f7187dd4de5c1ee7a83247759c6d3b975872aa7 /apps/dav/lib/Migration | |
parent | ad66b0f9ab010ee00d249d6f8512d30332e8a0af (diff) | |
download | nextcloud-server-b458ed9c82eeca4eafb4e86b7774ceba90130838.tar.gz nextcloud-server-b458ed9c82eeca4eafb4e86b7774ceba90130838.zip |
Properly escape column name in "createFunction" call
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav/lib/Migration')
-rw-r--r-- | apps/dav/lib/Migration/BuildCalendarSearchIndex.php | 2 |
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(); |