Closed d2a-pnagel closed 1 year ago
Hi! Thanks for the very clear and concise report, reproducer ánd proposed fix. What a blessing! PR #49 contains the fix and a lot of test cases to cover it. Once reviewed, I'll include it in a new release (0.9.1).
Should be live in v0.9.1!
Steps to reproduce:
contains(tolower(name), tolower('A'))
to SQL using theAstToSqlVisitor
-> error:Bug spotted:
AstToSqlVisitor._to_pattern
does not take into account that thearg
could be anast.Call
(and assumes a literal in theelse
branch)Proposed solution:
Change
Into