fix(minor): fieldnames can't have commas

This commit is contained in:
Rushabh Mehta 2021-03-29 22:02:21 +05:30
parent a2ffea53f2
commit 511a5ddc4b

View file

@ -108,6 +108,9 @@ def is_standard(fieldname):
return fieldname in default_fields or fieldname in optional_fields
def extract_fieldname(field):
if ',' in field:
raise_invalid_field(field)
fieldname = field.split(" as ")[0]
# certain functions allowed, extract the fieldname from the function