You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In SQLite comparison of expiry date is done using query
(expiry IS NULLOR expiry > DATETIME('now'))
but SQLite considers text strings for date and time comparisons by character order, not by their actual date/time value., so the check is not working correctly and Askar returns the items stored even after expired.
The fix is easy, expiry should be first converted to DATETIME, in above query something like:
(expiry IS NULLOR DATETIME(expiry) > DATETIME('now'))
The text was updated successfully, but these errors were encountered:
In SQLite comparison of expiry date is done using query
but SQLite considers text strings for date and time comparisons by character order, not by their actual date/time value., so the check is not working correctly and Askar returns the items stored even after expired.
The fix is easy,
expiry
should be first converted to DATETIME, in above query something like:The text was updated successfully, but these errors were encountered: