Skip to content

Commit fd307cc

Browse files
authored
Add space before returning statement to prevent invalid syntax
1 parent 3adb6a5 commit fd307cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psqlextra/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def _form_returning(self):
2020
"""Builds the RETURNING part of the query."""
2121

2222
qn = self.connection.ops.quote_name
23-
return 'RETURNING %s' % qn(self.query.model._meta.pk.name)
23+
return ' RETURNING %s' % qn(self.query.model._meta.pk.name)
2424

2525

2626
class PostgresInsertCompiler(SQLInsertCompiler):

0 commit comments

Comments
 (0)