Skip to content
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

Floating point type parameters parsing problem #63

RuslanMarchenko opened this issue Feb 3, 2015 · 4 comments


None yet
7 participants
Copy link

commented Feb 3, 2015

When I call odata function with a double parameter, I can see that ExpressionLexer.MakeBestGuessOnNoSuffixStr method is using current thread culture for several TryParse method calls when trying to parse the parameter from the url. I suppose that to be a bug because the numeric literal format is fixed in OData-ABNF, the double one for example. It seems that there is a need to call TryParse with invariant culture, insn’t it?


This comment has been minimized.

Copy link

commented Feb 17, 2015

@Ruslan: Would you like to contribute a fix for the issue? Thanks.


This comment has been minimized.

Copy link

commented Sep 7, 2015

Same problem. Any update?


This comment has been minimized.

Copy link

commented Nov 9, 2015

If CurrentCulture is russian (for example), then double.Parse("0.23") will fail and double.Parse("0,23") will success - used comma instead of dot.
Because ABNF for ODATA resticted to dots, so ExpressionLexer should use InvariantCulture then parsing strings.
I made in in my pull request #374

lewischeng-ms added a commit to lewischeng-ms/ that referenced this issue Nov 13, 2015


This comment has been minimized.

Copy link

commented Nov 13, 2015

PR #374 has been merged. @maximpashuk Thanks for your contribution again!

@congysu congysu added this to the 6.14 milestone Nov 27, 2015

@LianwMS LianwMS modified the milestones: 6.14, 6.15 Dec 21, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.