Summary: | Search for camera model EOS 300D does not find all images | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Michael <mas_masterandservant> |
Component: | Searches-Advanced | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | metzpinguin |
Priority: | NOR | ||
Version First Reported In: | 8.0.0 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/graphics/digikam/-/commit/2f96b96554911621b80be434145567a43f53815a | Version Fixed In: | 8.1.0 |
Sentry Crash Report: | |||
Attachments: | Log file |
Description
Michael
2023-06-19 20:51:10 UTC
I can't reproduce any problem, I also happen to have about 200 images from the EOS 300D in my collection and they all show up. When I select one of my Nikon cameras, thousands of images are listed. Are you sure you didn't accidentally activate another search criterion? By design we only list the camera model name, things like "Canon" or "Digital" will be removed. The database search is a "LIKE" search with wildcards. We need a DebugView log from searching with internal debugging enabled in digiKam Settings-> Miscellaneous-> System or set Qt debug environment variable. Described here: https://www.digikam.org/contribute/ Maik Hello Maik, yes. I was wondering the same as you. So I tried it several times and I am sure I chose the right option. And not only that. I restarted digikam, I restarted my computer and I recreated the complete database. Always the same. Only "CANON" is found and "Canon" is not. And I checked the database table "ImageMetadata", hope it is the right one. Besides the DebugView, I can offer you to try to rewrite the Canon data entries to match the same notation via "update table" statement. Let me know if you want me to test it with the "update table" statement as well. The DebugView will follow in the next few days. Created attachment 159786 [details]
Log file
In the join you will find ..."( ImageMetadata.model = ?)", where "?" is replaced by "CANON EOS 300D DIGITAL". So the case sensitivity is relevant. I tested the SQL with "( ImageMetadata.model like ? )" directly in the SQLiteBrowser. For my case this gives the correct results. All EOS 300D images are found.
Yes, you are right, the model search is not a "LIKE" search. I see the missing code, I'll fix it tonight. Maik Git commit 2f96b96554911621b80be434145567a43f53815a by Maik Qualmann. Committed on 20/06/2023 at 16:36. Pushed by mqualmann into branch 'master'. use for camera model search a "LIKE" based query Related: bug 450611 FIXED-IN: 8.1.0 M +2 -1 NEWS M +2 -1 core/utilities/searchwindow/searchfields_createfield.cpp https://invent.kde.org/graphics/digikam/-/commit/2f96b96554911621b80be434145567a43f53815a |