Following the last upgrade of the the xamrin environment is no longer possible to perform the queries, which filter is composed with datetime condition.
While leaving all conditions unchanged: same source code, same database structure and the data in the tables; the solution compiled with the previous framework (until August 2016) return always the correct records, after install the last framework the query return 0 result.
using (SqliteCommand cmd = conn.CreateCommand())
cmd.CommandText = " SELECT * FROM SP_ARTMGZ WHERE DATE_SPED=@DATESPED ";
using (SqliteDataAdapter da = new SqliteDataAdapter(cmd))
=== Xamarin Studio Professional ===
Version 6.1.2 (build 44)
Installation UUID: 8716ded3-7f56-49d6-b5ac-f2c7597eef3f
Microsoft .NET 4.0.30319.42000
GTK+ 2.24.26 (Light theme)
=== NuGet ===
=== Xamarin.Android ===
Versione: 188.8.131.52 (Visual Studio Professional)
Android SDK: C:\Users\Giovanni\AppData\Local\Android\android-sdk
Versione di Android supportate:
4.0.3 (livello API 15)
4.4 (livello API 19)
4.4.87 (livello API 20)
5.0 (livello API 21)
5.1 (livello API 22)
6.0 (livello API 23)
7.0 (livello API 24)
Versione degli strumenti SDK: 25.2.2
Versione degli strumenti della piattaforma SDK: 25
Versione degli strumenti di compilazione SDK: 23.0.3
Created attachment 18674 [details]
Bug reproduction test case
Test case that reproduces bug under
, but not limited to.
Test case passes under
, and earlier versions
This is a bug, and is a result of these two commits:
These are the related issues:
Basically, the way in which dates are saved was changed:
OLD: yyyy-MM-dd HH:mm:ss.FFFFFFF
NEW: yyyy-MM-dd HH:mm:ss.FFFFFFFK
For whatever reason this was changed, it is "incorrect" with regards to SQLite docs:
> SQLite does not have a storage class set aside for storing dates and/or times.
> Instead, the built-in Date And Time Functions of SQLite are capable of storing
> dates and times as TEXT, REAL, or INTEGER values:
> - TEXT as ISO8601 strings ("YYYY-MM-DD HH:MM:SS.SSS").
> - REAL as Julian day numbers, the number of days since noon in Greenwich on
> November 24, 4714 B.C. according to the proleptic Gregorian calendar.
> - INTEGER as Unix Time, the number of seconds since 1970-01-01 00:00:00 UTC.
Fixed in master and upcoming C9 updates
*** Bug 52427 has been marked as a duplicate of this bug. ***
Verified fixed using the attached test case against monodroid/cycle9/3a62f1ea1f6.
Fix published in Xamarin.Android 7.2
Notice (2018-05-21): bugzilla.xamarin.com will be
switching to read-only mode on Thursday, 2018-05-25 22:00 UTC.
Please join us on
Visual Studio Developer Community and
GitHub to continue tracking
issues. Bugzilla will remain available for reference in read-only mode.
We will continue to work on open Bugzilla bugs and copy them to the new
locations as needed for follow-up. The See Also field
on each Bugzilla bug will be updated with a link to its new location
After Bugzilla is read-only, if you have new information to add for a
bug that does not yet have a matching issue on Developer Community or
GitHub, you can create a follow-up issue in the new location. Copy and
paste the title and description from this bug, and then add your new
details. You can get a pre-formatted version of the title and
In special cases you might also want the comments:
Our sincere thanks to everyone who has contributed on this bug tracker
over the years. Thanks also for your understanding as we make these
adjustments and improvements for the future.