| Summary: | Searching images created on a given day of every month is not possible | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Johannes <johannes.lists+bugs.kde.org> |
| Component: | Searches-Advanced | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | metzpinguin |
| Priority: | NOR | ||
| Version First Reported In: | 7.2.0 | ||
| Target Milestone: | --- | ||
| Platform: | Appimage | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/digikam/commit/1282cb7e6200750f0bdc562fbf6ea3f6d51777ff | Version Fixed/Implemented In: | 7.3.0 |
| Sentry Crash Report: | |||
|
Description
Johannes
2021-06-20 19:12:35 UTC
Returning a specific day from the collection is currently not implemented. This specific date operation cannot be implemented by every user with a simple WHERE clause. Maik The WHERE clause for month and day is for example
WHERE Images.status=1 AND ( ( (STRFTIME('%m%d', ImageInformation.creationDate) = ?) ) );"
(QVariant(QString, "0720"))
So by leaving out %m and using a String like "20" it should work.
STRFTIME only works with SQLite, MySQL requires different SQL code. Maik Git commit 1282cb7e6200750f0bdc562fbf6ea3f6d51777ff by Maik Qualmann. Committed on 21/06/2021 at 16:29. Pushed by mqualmann into branch 'master'. add search for a day from the collection FIXED-IN: 7.3.0 M +2 -1 NEWS M +18 -5 core/libs/database/item/query/itemquerybuilder.cpp M +1 -17 core/utilities/searchwindow/searchfields.cpp M +0 -4 core/utilities/searchwindow/searchfields.h https://invent.kde.org/graphics/digikam/commit/1282cb7e6200750f0bdc562fbf6ea3f6d51777ff |