-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property named "true" in $select throws exception #2410
Comments
Hi @giulianob |
@habbes We have models that are created by customers and actually ran into a customer using the name "true". This isn't something we can change. |
@giulianob thanks for the additional context. We're looking into this. It should be possible to disambiguate the boolean literal and an identifier called |
@habbes We found another case where a customer named a field |
@giulianob let's see whether this PR: #2437 addresses that issue as well. |
Ok thank you. It looks like the PR was in good shape with minor fixes but hasn't received any updates since 2022. Is it possible to try and get it merged? Thanks! |
Creating a field called "true" then using it in a
$select=true
throws an error.Assemblies affected
OData .Net lib 7.10
Reproduce steps
Create a model with an entity property called "true" then try to use it in a $select
Expected result
The $select works and does not throw an error.
Actual result
OData parses the "true" as a boolean and fails because it is not an identifier.
The text was updated successfully, but these errors were encountered: