[Digikam-devel] [Bug 120775] Search doesn't find pictures without rating
Tom Albers
tomalbers at kde.nl
Fri Feb 3 21:12:27 GMT 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=120775
------- Additional Comments From tomalbers kde nl 2006-02-03 22:12 -------
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;
More information about the Digikam-devel
mailing list