fix: Add provision for quotes in DatabaseQuery.prepare_args
This commit is contained in:
parent
f004b0592d
commit
b00a389cfd
1 changed files with 1 additions and 1 deletions
|
|
@ -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:]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue