Thanks to visit codestin.com Credit goes to github.com
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 14b4038 + 5b7ed3c commit ad8455cCopy full SHA for ad8455c
django_pyodbc/compiler.py
@@ -338,7 +338,9 @@ def _alias_columns(self, sql):
338
buf = paren_buf.pop()
339
340
# store the expanded paren string
341
+ buf = re.sub(r'%([^\(])', r'$$$\1', buf)
342
parens[key] = buf% parens
343
+ parens[key] = re.sub(r'\$\$\$([^\(])', r'%\1', parens[key])
344
#cannot use {} because IBM's DB2 uses {} as quotes
345
paren_buf[paren_depth] += '(%(' + key + ')s)'
346
else:
0 commit comments