We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66aaac0 + c953a5d commit 39d4d4cCopy full SHA for 39d4d4c
postgres_copy/copy_to.py
@@ -17,11 +17,11 @@ class SQLCopyToCompiler(SQLCompiler):
17
"""
18
Custom SQL compiler for creating a COPY TO query (postgres backend only).
19
20
- def setup_query(self):
+ def setup_query(self, **kwargs):
21
22
Extend the default SQLCompiler.setup_query to add re-ordering of items in select.
23
24
- super(SQLCopyToCompiler, self).setup_query()
+ super(SQLCopyToCompiler, self).setup_query(**kwargs)
25
if self.query.copy_to_fields:
26
self.select = []
27
for field in self.query.copy_to_fields:
0 commit comments