VirtualBox

Changeset 83390 in vbox for trunk


Ignore:
Timestamp:
Mar 24, 2020 4:58:43 PM (5 years ago)
Author:
vboxsync
Message:

TestManager/schedgroup.py: Better hack for dummy removal entries (purpose is getting the author).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/schedgroup.py

    r83387 r83390  
    530530ORDER BY    tsEffective DESC
    531531) UNION (
    532 SELECT      tsEffective,
     532SELECT      CASE WHEN tsEffective + %s::INTERVAL = tsExpire THEN tsExpire ELSE tsEffective END,
    533533            uidAuthor
    534534FROM        SchedGroupMembers
     
    537537ORDER BY    tsEffective DESC
    538538) UNION (
    539 SELECT      tsEffective,
     539SELECT      CASE WHEN tsEffective + %s::INTERVAL = tsExpire THEN tsExpire ELSE tsEffective END,
    540540            uidAuthor
    541541FROM        TestBoxesInSchedGroups
     
    546546ORDER BY    tsEffective DESC
    547547LIMIT %s OFFSET %s
    548 ''', (idSchedGroup, tsNow, idSchedGroup, tsNow, idSchedGroup, tsNow, cMaxRows + 1, iStart, ));
     548''', (idSchedGroup, tsNow,
     549      db.dbOneTickIntervalString(), idSchedGroup, tsNow,
     550      db.dbOneTickIntervalString(), idSchedGroup, tsNow,
     551      cMaxRows + 1, iStart, ));
    549552
    550553        aoEntries = [] # type: list[ChangeLogEntry]
     
    563566            #
    564567            for iEntry, oEntry in enumerate(aoEntries):
    565                 oEntry.oNewRaw = SchedGroupDataEx().initFromDbWithId(self._oDb, idSchedGroup,
    566                                                                      db.dbTimestampPlusOneTick(oEntry.tsEffective));
     568                oEntry.oNewRaw = SchedGroupDataEx().initFromDbWithId(self._oDb, idSchedGroup, oEntry.tsEffective);
    567569                if iEntry > 0:
    568570                    aoEntries[iEntry - 1].oOldRaw = oEntry.oNewRaw;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette