Skip to content

Commit 1f212c0

Browse files
committed
need to process the select via the compiler
1 parent f5811b1 commit 1f212c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redshift_sqlalchemy/dialect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def visit_unload_from_select(element, compiler, **kw):
8080
''' Returns the actual sql query for the UnloadFromSelect class
8181
'''
8282
return "unload ('%(query)s') to '%(bucket)s' credentials 'aws_access_key_id=%(access_key)s;aws_secret_access_key=%(secret_key)s'" % {
83-
'query': element.select,
83+
'query': compiler.process(element.select),
8484
'bucket': element.bucket,
8585
'access_key': element.access_key,
8686
'secret_key': element.secret_key,

0 commit comments

Comments
 (0)