-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
sqlite, decimal and non-US locale - System.FormatException: Input string was not in a correct format #1057
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Comments
Could you share your model and context code? |
it is a part of a quite big project. I will prepare repro over couple of days |
|
That was quick, the good news are that test in DataCommon.SQLite fails with a similar error |
This was referenced Nov 13, 2014
@dbis01 Pull request submitted aspnet/Microsoft.Data.Sqlite#59 |
@dbis01 Is this fixed in the latest bits? |
Yes! Thanks a lot |
Thank you, @ErikEJ. I just typed |
@bricelam Easy for you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
when I query decimal non-0 value from sqlite under non-US (Cyrillic to be specific, with comma as decimal separator) I get an exception: System.FormatException: Input string was not in a correct format. looks like there is a disagreement somewhere inside EF about what format to use during query and parsing
SELECT "q"."SalesWeight" FROM "Questions" AS "q" [I got it from ILogger]
An exception occurred in the data store while iterating the results of a query.
System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Decimal.Parse(String s)
at Microsoft.Data.SQLite.Utilities.SQLiteTypeMap.<>c__DisplayClass25
2.<Add>b__27(Object o) at Microsoft.Data.SQLite.Utilities.SQLiteTypeMap.FromInterop(Object value) at Microsoft.Data.SQLite.SQLiteDataReader.GetValue(Int32 ordinal) at Microsoft.Data.SQLite.SQLiteDataReader.GetValues(Object[] values) at Microsoft.Data.Entity.Relational.RelationalObjectArrayValueReader.CreateBuffer(DbDataReader dataReader) at Microsoft.Data.Entity.Relational.RelationalObjectArrayValueReader..ctor(DbDataReader dataReader) at Microsoft.Data.Entity.Relational.RelationalObjectArrayValueReaderFactory.Create(DbDataReader dataReader) at Microsoft.Data.Entity.Relational.Query.RelationalQueryModelVisitor.CreateEntity[TEntity](IQuerySource querySource, QueryContext queryContext, QuerySourceScope parentQuerySourceScope, DbDataReader dataReader, Int32 readerOffset, IEntityType entityType) at lambda_method(Closure , DbDataReader ) at Microsoft.Data.Entity.Relational.Query.AsyncQueryingEnumerable
1.AsyncEnumerator.d__1.MoveNext()The text was updated successfully, but these errors were encountered: