[Tickets #12600] Re: Horde_History::getByModSeq() broken by design?
noreply at bugs.horde.org
noreply at bugs.horde.org
Thu Aug 22 13:11:07 UTC 2013
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/12600
------------------------------------------------------------------------------
Ticket | 12600
Updated By | Thomas Jarosch <thomas.jarosch at intra2net.com>
Summary | Horde_History::getByModSeq() broken by design?
Queue | Horde Framework Packages
Version | Git master
Type | Bug
State | Feedback
Priority | 2. Medium
Milestone |
Patch |
Owners | Michael Rubinsky
------------------------------------------------------------------------------
Thomas Jarosch <thomas.jarosch at intra2net.com> (2013-08-22 13:11) wrote:
> Returning the most recent entry doesn't work because the query
> doesn't specify any order, so selectAssoc() will return whatever
> happens to be the last returned row.
The function searches for unique object uids that changed during a
given modseq range.
So it's not important which row it returns.
If we want to return the most recent row, we could add an "ORDER BY
modseq DESC" statement, though it's not currently not needed. The user
can use the getLatestEntry($object_uid) if really needed.
Thanks for checking it in detail though!
More information about the bugs
mailing list