fix: Add provision for quotes in DatabaseQuery.prepare_args

This commit is contained in:
Gavin D'souza 2020-10-09 19:40:45 +05:30
parent f004b0592d
commit b00a389cfd

View file

@ -172,7 +172,7 @@ class DatabaseQuery(object):
fields = []
for field in self.fields:
if (field.strip().startswith(("`", "*")) or "(" in field):
if field.strip().startswith(("`", "*", '"', "'")) or "(" in field:
fields.append(field)
elif "as" in field.lower().split(" "):
col, _, new = field.split()[-3:]