Mercurial > p > roundup > code
diff test/test_memorydb.py @ 6806:bdd28b244839
- issue2551223 - fix timestamp truncation in mysql and postgresql
The data types used to represent timestamps in pg and mysql for
ephemeral tables: sessions and otks don't have enough signifcant
digits to work. As a result the timestamps are rounduped (up/down)
rsuling in the stored timestamp being 2 minutes (pg) or 2-3
hours(mysql) off from what it should be.
Modify db schema to use a numeric type that preserves more significant
figures. Implement schema upgrade. Document need for upgrade in
upgrading.txt.
Write tests for schema upgrade.
Implement test for updateTimestamp method on BasicDatabase that showed
this issue in the first place. Write overrides for test for
anydbm/memorydb which store timestamp properly or not at all.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 25 Jul 2022 17:20:20 -0400 |
| parents | 044dcf3608a2 |
| children | 74cafb11351f |
line wrap: on
line diff
--- a/test/test_memorydb.py Mon Jul 25 16:39:31 2022 -0400 +++ b/test/test_memorydb.py Mon Jul 25 17:20:20 2022 -0400 @@ -63,5 +63,9 @@ setupSchema(self.db, 1, self.module) self.sessions = self.db.sessions + # doesn't work for memory as it uses a mock for session db. + def testUpdateTimestamp(self): + pass + # vim: set filetype=python ts=4 sw=4 et si
