fix(minor): functions must end with bracket
(cherry picked from commit 0c995940c1)
This commit is contained in:
parent
0fab70f39b
commit
64f21730b1
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