-
Notifications
You must be signed in to change notification settings - Fork 71
Numbers #5
Comments
Not sure if this is related but I have this query: '$filter=test eq 12345' And this is what I am getting: { Thanks. |
Im experiencing the same issue. odata.parse('$filter=Temperature gt 50'); yields the expression object: { |
Any word on a resolution for this? I just found this library to hook into my code to help translate $filter strings to MySQL where clauses and this is a show-stopper for me. To see the problem change the test: it('should parse numbers okay', function(){ |
A "quick and dirty" workaround could be commenting out lines There seems to be a problem with parsing integers and the order of processing of integers and bytes. |
There seem to be some issues in your parsing of numbers. It appears your logic to determine types fails particularly on bytes. You may want to take a look at the spec for abstract types at http://www.odata.org/documentation/overview/#AbstractTypeSystem. You will probably have to reorder your logic for detection.
For example. $filter=Field1 eq 9999 captures 999 as a byte when its not. The format for bytes is 2 characters [A-Fa-f0-9]+ so this results in a failure for the call.
The text was updated successfully, but these errors were encountered: