-
Notifications
You must be signed in to change notification settings - Fork 715
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
Binding integer data value from application is broken for WP(8) #123
Comments
This appears to be because of bug in WP8 code (trivial to fix - changing On 21 August 2014 03:10, Chris Brody notifications@github.com wrote:
|
On Thu, Aug 21, 2014 at 12:31 PM, Typhlosaurus notifications@github.com
👍
I consider this to be very minor - I cannot see how this would cause any |
This code is worked for me, in the SQLitePlugin.cs when the query has REAL values:
|
Hi @briancalvillo I think your code above addresses a different problem that if a device has a European culture configuration it could cause a REAL number to be formatted incorrectly in the result that is returned to the Javascript, causing the application code to receive incorrect data. I must admit that my C# knowledge is not so great (the WP(8) version was implemented by @marcucio) so this is only speculation. I found a couple links that may be relevant: |
@briancalvillo suggested a possible fix using System.Globalization.CultureInfo in #123. This _could_ be needed on devices with European localization. Using CultureInfo.InvariantCulture in both Convert.ToDouble() and String.Format() for REAL (Double) results to be extra-safe.
…ation issue in WP(8) REAL result to Javascript (ref: #123)
Now fixed in |
If an application using the WP(8) version inserts an integer value into a column for which no type was specified, and then the same value is retrieved, the value will be returned to the application as a string. In the following test case:
the
strictEqual()
check ondata_int
fails on the WP(8) version.The text was updated successfully, but these errors were encountered: