annotate demo.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 7f0bc46aee67
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6737
7f0bc46aee67 Force demo.py to use python3.
John Rouillard <rouilj@ieee.org>
parents: 4845
diff changeset
1 #!/usr/bin/env python3
4765
c6694cff29bc demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents: 4763
diff changeset
2 import sys
c6694cff29bc demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents: 4763
diff changeset
3 import roundup
c6694cff29bc demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents: 4763
diff changeset
4
c6694cff29bc demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents: 4763
diff changeset
5 from roundup.demo import main
c6694cff29bc demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents: 4763
diff changeset
6
c6694cff29bc demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents: 4763
diff changeset
7 sys.exit(main())

Roundup Issue Tracker: http://roundup-tracker.org/