[Bug 210845] New: Date interval search returns nothing if you specify the same date as interval

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 210845] New: Date interval search returns nothing if you specify the same date as interval

Bugzilla from mmenaz@mail.com
https://bugs.kde.org/show_bug.cgi?id=210845

           Summary: Date interval search returns nothing if you specify
                    the same date as interval
           Product: digikam
           Version: unspecified
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Debian testing/unstable Packages

If in advanced search, Picture Properties you fill the date interval with the
same date (i.e. I want to see the picture of 01/01/09, so I enter that date in
both "and" fields), no picture is selected.
If I want those pictures, I have to enter the interval 01/01/09 and 02/01/09.
This is not the expected behaviour (the way of such selection usually works).

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210845] Date interval search returns nothing if you specify the same date as interval

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=210845


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
          Component|general                     |Searches
            Version|unspecified                 |0.10.0




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210845] Date interval search returns nothing if you specify the same date as interval

Bugzilla from andi.clemens@gmx.net
In reply to this post by Bugzilla from mmenaz@mail.com
https://bugs.kde.org/show_bug.cgi?id=210845


Andi Clemens <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|0.10.0                      |1.0.0-beta6




--- Comment #1 from Andi Clemens <andi clemens gmx net>  2009-10-17 00:37:27 ---
True in current SVN

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210845] Date interval search returns nothing if you specify the same date as interval

Bugzilla from andi.clemens@gmx.net
In reply to this post by Bugzilla from mmenaz@mail.com
https://bugs.kde.org/show_bug.cgi?id=210845





--- Comment #2 from Andi Clemens <andi clemens gmx net>  2009-10-17 11:43:42 ---
If I search for
select * from imageinformation where creationdate >= '2005-10-02T00:00:00' and
creationdate <= '2005-10-02T00:00:00';

I get no result, but

select * from imageinformation where creationdate >= '2005-10-02T00:00:00' and
creationdate <= '2005-10-03T00:00:00';

will give me images. The question is how to treat this now?
If I really want images from one day, the querybuilder should detect that the
dates in the range are the same and set the end date one step higher.

Any other suggestions?

Marcel?

Andi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210845] Date interval search returns nothing if you specify the same date as interval

Bugzilla from andi.clemens@gmx.net
In reply to this post by Bugzilla from mmenaz@mail.com
https://bugs.kde.org/show_bug.cgi?id=210845


Andi Clemens <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210845] Date interval search returns nothing if you specify the same date as interval

Marcel Wiesweg
In reply to this post by Bugzilla from mmenaz@mail.com
https://bugs.kde.org/show_bug.cgi?id=210845





--- Comment #3 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-10-17 12:54:42 ---
There is code in the query builder to handle the "Equal" case.
The search field should write only one date with the relation "Equal".

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210845] Date interval search returns nothing if you specify the same date as interval

Marcel Wiesweg
In reply to this post by Bugzilla from mmenaz@mail.com
https://bugs.kde.org/show_bug.cgi?id=210845


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #4 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-10-17 13:07:28 ---
SVN commit 1036520 by mwiesweg:

For the case of same date for begin and end of the interval, do not store an
interval but only a single date with the relation "Equal".

Note: For any stored search, you must open the advanced search window and click
OK once to store the search XML the correct way.

BUG: 210845

 M  +2 -1      NEWS  
 M  +37 -12    utilities/searchwindow/searchfields.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1036520

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210845] Date interval search returns nothing if you specify the same date as interval

Bugzilla from mmenaz@mail.com
In reply to this post by Bugzilla from mmenaz@mail.com
https://bugs.kde.org/show_bug.cgi?id=210845





--- Comment #5 from Marco Menardi <mmenaz mail com>  2009-10-17 14:39:46 ---
In any case, if I want the pictures of 01/01/09 AND 02/01/09, equal will not be
used and I will have just the pics of 01/01/09.
The problem is that we want to search for DATE, but a TIMESTAMP (date + time)
is stored and managed by database (I suspect, I'm not a digiKam developer).
I don't know what database digiKam uses, and if it supports only DATE type
field.
If not, and to solve a generic case, we have to set to 00.00 the starting date
time part, and to 23.59 (or 11.59pm) the end date interval.
This is also true if we thing that the Time value could be important to us.
Currently we have:
select * from imageinformation where creationdate >= '2005-10-02T00:00:00' and
creationdate <= '2005-10-02T00:00:00';
that could find only pictures created exactly ad time 00.00.00 of 2005-10-02,
that are very unlikely to exist :)
With my suggestion we will have:
select * from imageinformation where creationdate >= '2005-10-02T00:00:00' and
creationdate <= '2005-10-02T23:59:59';
that will sure find the pics created that day.
This solution work also in the interval:
select * from imageinformation where creationdate >= '2005-10-02T00:00:00' and
creationdate <= '2005-10-05T23:59:59';
finding the pictures created 02, 03, 04 and 05 October 2005
I suggest then to reopen the bug and fix this way.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210845] Date interval search returns nothing if you specify the same date as interval

Gilles Caulier-4
In reply to this post by Bugzilla from mmenaz@mail.com
https://bugs.kde.org/show_bug.cgi?id=210845


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.0.0-beta6                 |1.0.0




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel