You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I frequently run into the error below when the code in mixins/sqla.py tries to run a .ilike( ... ). All the other operators work fine. Here is a full trace:
File "/opt/bitnami/python/lib/python3.7/site-packages/boolean_parser/parsers/sqla.py", line 54, in filter
for condition in self.conditions]
File "/opt/bitnami/python/lib/python3.7/site-packages/boolean_parser/parsers/sqla.py", line 54, in <listcomp>
for condition in self.conditions]
File "/opt/bitnami/python/lib/python3.7/site-packages/boolean_parser/parsers/sqla.py", line 54, in filter
for condition in self.conditions]
File "/opt/bitnami/python/lib/python3.7/site-packages/boolean_parser/parsers/sqla.py", line 54, in <listcomp>
for condition in self.conditions]
File "/opt/bitnami/python/lib/python3.7/site-packages/boolean_parser/mixins/sqla.py", line 135, in filter
condition = self._filter_one(model, field=field, condition=condition)
File "/opt/bitnami/python/lib/python3.7/site-packages/boolean_parser/mixins/sqla.py", line 186, in _filter_one
'%' + bindparam(self.bindname, value) + '%')
AttributeError: 'SQLACondition' object has no attribute 'bindname'
The text was updated successfully, but these errors were encountered:
Hi @linozen thanks for using the package. Glad you're finding it helpful. Can you provide an example I could use to try to reproduce the error you're seeing? It may be the case that I haven't accounted for all the sqlalchemy operators.
I realize now that this block had old code in it (self.bindname) and that's why it was failing. A simple change would be to replace self.bindname with self.fullname, but I left further details in my PR review.
Thanks for the great utility!
I frequently run into the error below when the code in
mixins/sqla.py
tries to run a.ilike( ... )
. All the other operators work fine. Here is a full trace:The text was updated successfully, but these errors were encountered: