Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Feature: Support cast() in $filter [1586]

$
0
0
Currently, the following query throws:
http://localhost:20598/odata/Products?$filter=ID eq cast('1', 'Edm.Int32')
```
{
"odata.error": {
"code": "",
"message": {
"lang": "en-US",
"value": "An error has occurred."
},
"innererror": {
"message": "Unknown function 'cast'.",
"type": "System.NotImplementedException",
"stacktrace": " at System.Web.Http.ApiController.<InvokeActionWithExceptionFilters>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__0.MoveNext()"
}
}
}
```
Comments: Unassigned release "v4 work for enum in query $filter" CR adds tests for the following filters. That's not yet checked in. Do these casts in $filter succeed? If yes what is the specific problem? * `"Simple eq cast(cast(0, 'Edm.String'), 'Microsoft.TestCommon.Types.SimpleEnum')"` * `"Simple eq cast(0, 'Microsoft.TestCommon.Types.SimpleEnum')"`

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>