Hello,
correct me if I am wrong, but I believe there is a bug in the Query implementation of OData.
I have a Web Service that returns Items from Dynamics NAV 2013 R2. There are plenty of products (Items) which has VAT_Prod_Posting_Group equal to empty string '', but when I send the request below, it returns just one item. It seems like the filter is applied after the applying of skip and top instead of the reversed order (one of the first 5 items really has the string value of '').
http://localhost:7048/DynamicsNAV71/OData/ItemsList?$skip=0&$top=5&$filter=VAT_Prod_Posting_Group eq ''
I've tried a similar request on the OData testing site (as seen below) and there it works as expected (skip and top are applied after the filter pattern).
http://services.odata.org/Northwind/Northwind.svc/Customers?$skip=0&$top=5&$filter=Fax eq null
*This post is locked for comments