Skip to content

Commit

Permalink
escape % sign.
Browse files Browse the repository at this point in the history
  • Loading branch information
binarymatt committed Aug 12, 2013
1 parent 58e170c commit f58c6e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redshift_sqlalchemy/dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def visit_bindparam(bindparam, compiler, **kw):
if 'unload_select' in kw:
#process param and return
res = res.replace("'", "\\'")
res = res.replace('%', '%%')
return res
else:
return res

0 comments on commit f58c6e7

Please sign in to comment.