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 have a piece of code searching for records that DO NOT have a certain attribute, in the following way:
match=dict(
canceled=None,
#...some other stuff
)
cursor=self.tx.collection('Whatever').find(match)
This was working fine up to a while ago. Today a customer called me saying that a feature wasn't working. I had just upgraded to the latest version of python arango, and using a previous version the bug didn't appear (I know, I should have tests in place, I'll get to them someday 😓).
The error is the following:
arango.exceptions.DocumentGetError: [HTTP 400][ERR 1501] AQL: syntax error, unexpected none modifier near 'None\n LIMIT 0, nu...' at position 3:69 (while parsing)
I looked weird that it mentioned a query. I checked the python-arango code and noticed that in the latest release the code for find changed in 022afc2 from this:
Hello,
I have a piece of code searching for records that DO NOT have a certain attribute, in the following way:
This was working fine up to a while ago. Today a customer called me saying that a feature wasn't working. I had just upgraded to the latest version of python arango, and using a previous version the bug didn't appear (I know, I should have tests in place, I'll get to them someday 😓).
The error is the following:
I looked weird that it mentioned a query. I checked the python-arango code and noticed that in the latest release the code for
find
changed in 022afc2 from this:to this
@aMahanna: Is this a regression or
dict(attribute=None)
as filter is not meant to work? In the second case, is there any other solution or workaround?The text was updated successfully, but these errors were encountered: