Closed mbtaylor closed 1 year ago
Indeed, just looking at the message:
="[a-zA-Z]+[a-zA-Z0-9_]",
There is an error in the regular expression: the +
is at the wrong place. It should be [a-zA-Z][a-zA-Z0-9_]+
.
This should now be fixed in branch adql2.1
.
The problem did not come from what I said, but I fixed anyway this error message. The character _
was merely not accepted.
Thank you, fix confirmed.
I think there is a bug in the pattern matching used by the
adql.db.FunctionDef.parse
method. The following invocation succeeds:but the following one fails:
with a ParserException having a message:
Since
a_b
matches the<regular_identifier>
regex, it ought to succeed. The behaviour is the same on branchesmaster
andadql2.1
.