Fixes #213 (MySQL syntax error)

This commit is contained in:
Philippe O. Wagner 2017-04-19 11:30:12 +02:00 committed by GitHub
parent 6922759aed
commit 236da3cdfc

View File

@ -50,7 +50,7 @@ class GroupConcat(models.Aggregate):
def _get_template(self, separator):
if self.engine == self.ENGINE_MYSQL:
return "%(function)s(%(expressions)s, SEPARATOR '{}')".format(
return "%(function)s(%(expressions)s SEPARATOR '{}')".format(
separator)
return "%(function)s(%(expressions)s, '{}')".format(separator)