ODataSamples icon indicating copy to clipboard operation
ODataSamples copied to clipboard

oData V4 case sensitive and incase sensitive is not working

Open jmfarook opened this issue 7 years ago • 1 comments

`http://services.odata.org/V4/Northwind/Northwind.svc/Employees/?$filter=contains(toupper(FirstName),%27C%27)

http://services.odata.org/V4/Northwind/Northwind.svc/Employees/?$filter=contains(tolower(FirstName),%27C%27)`

this is query string but it always return both lower and uppercase

jmfarook avatar Sep 14 '17 02:09 jmfarook

Hi. not sure I am following the question. this query: http://services.odata.org/V4/Northwind/Northwind.svc/Employees/?$count=true&$select=FirstName shows a count of 9. this query: http://services.odata.org/V4/Northwind/Northwind.svc/Employees/?$filter=contains(tolower(FirstName),'C')&$count=true&$select=FirstName shows a count of 2.

This is expected behavior if the service in question is has configured case insensitivity to be on, which the V4 service has done.

mtroth-microsoft avatar Sep 16 '17 16:09 mtroth-microsoft