Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
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.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
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