| Summary: | Search doesn't find pictures without rating | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Stéphane Pontier <shadow.walker> |
| Component: | Searches-Labels | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | caulier.gilles |
| Priority: | NOR | ||
| Version First Reported In: | 0.8.1 | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 0.9.0 | |
| Sentry Crash Report: | |||
|
Description
Stéphane Pontier
2006-01-25 12:24:32 UTC
Yes, for both quick and advanced searches. SVN commit 505430 by toma:
I'm very sorry I made the search as good as useless in 0.8.1. I hope this fixes this issue (thanks for the hint Maxime).
Can anyone fonfirm that?
BUG: 120479,120775
M +4 -4 digikamsearch.cpp
--- branches/stable/extragear/graphics/digikam/kioslave/digikamsearch.cpp #505429:505430
@@ -136,7 +136,7 @@
// query head
sqlQuery = "SELECT Images.id, Images.name, Images.dirid, Images.datetime, Albums.url "
- "FROM Images, Albums, ImageProperties "
+ "FROM Images, Albums LEFT JOIN ImageProperties ON Images.id = Imageproperties.imageid "
"WHERE ( ";
// query body
@@ -144,7 +144,7 @@
// query tail
sqlQuery += " ) ";
- sqlQuery += " AND (Albums.id=Images.dirid) AND (Images.id = ImageProperties.imageid); ";
+ sqlQuery += " AND (Albums.id=Images.dirid); ";
QStringList values;
QString errMsg;
@@ -240,7 +240,7 @@
// query head
sqlQuery = "SELECT Albums.url||'/'||Images.name "
- "FROM Images, Albums, ImageProperties "
+ "FROM Images, Albums LEFT JOIN ImageProperties on Images.id = ImageProperties.imageid "
"WHERE ( ";
// query body
@@ -248,7 +248,7 @@
// query tail
sqlQuery += " ) ";
- sqlQuery += " AND (Albums.id=Images.dirid) AND (Images.id = ImageProperties.imageid) ";
+ sqlQuery += " AND (Albums.id=Images.dirid) ";
sqlQuery += " LIMIT 500;";
QStringList values;
SVN commit 505437 by toma:
forwardport SVN commit 505430 by toma: I'm very sorry I made the search as good as useless in 0.8.1. I hope this fixes this issue (thanks for the hint Maxime).
CCBUG: 120479,120775
M +4 -4 digikamsearch.cpp
--- trunk/extragear/graphics/digikam/kioslave/digikamsearch.cpp #505436:505437
@@ -136,7 +136,7 @@
// query head
sqlQuery = "SELECT Images.id, Images.name, Images.dirid, Images.datetime, Albums.url "
- "FROM Images, Albums, ImageProperties "
+ "FROM Images, Albums LEFT JOIN ImageProperties ON Images.id = Imageproperties.imageid "
"WHERE ( ";
// query body
@@ -144,7 +144,7 @@
// query tail
sqlQuery += " ) ";
- sqlQuery += " AND (Albums.id=Images.dirid) AND (Images.id = ImageProperties.imageid); ";
+ sqlQuery += " AND (Albums.id=Images.dirid); ";
QStringList values;
QString errMsg;
@@ -240,7 +240,7 @@
// query head
sqlQuery = "SELECT Albums.url||'/'||Images.name "
- "FROM Images, Albums, ImageProperties "
+ "FROM Images, Albums LEFT JOIN ImageProperties on Images.id = ImageProperties.imageid "
"WHERE ( ";
// query body
@@ -248,7 +248,7 @@
// query tail
sqlQuery += " ) ";
- sqlQuery += " AND (Albums.id=Images.dirid) AND (Images.id = ImageProperties.imageid) ";
+ sqlQuery += " AND (Albums.id=Images.dirid) ";
sqlQuery += " LIMIT 500;";
QStringList values;
i'm using the latest build from svn (0.8.2 - rc1) and this issue is still disabling the search. ( fedora devel, compiled from sources ) |