Commit bd020f77 authored by Vincent Pelletier's avatar Vincent Pelletier

ZSQLCatalog.Query.EntireQuery: Strip parentheses from pre-mapped column.

parent fe8565ea
...@@ -131,7 +131,8 @@ class EntireQuery(object): ...@@ -131,7 +131,8 @@ class EntireQuery(object):
column = alias column = alias
if '.' in alias: if '.' in alias:
# If given column is pre-mapped, strip table name from its alias. # If given column is pre-mapped, strip table name from its alias.
_, alias = alias.replace('`', '').split('.') _, alias = alias.split('.')
alias = alias.strip('`()')
else: else:
column = raw_column column = raw_column
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment