fix(minor): functions must end with bracket
This commit is contained in:
parent
511a5ddc4b
commit
0c995940c1
1 changed files with 2 additions and 0 deletions
|
|
@ -117,6 +117,8 @@ def extract_fieldname(field):
|
|||
if (fieldname.startswith('count(')
|
||||
or fieldname.startswith('sum(')
|
||||
or fieldname.startswith('avg(')):
|
||||
if not fieldname.endswith(')'):
|
||||
raise_invalid_field(field)
|
||||
fieldname = fieldname.split('(', 1)[1].split(')')[0]
|
||||
|
||||
return fieldname
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue