When writing unittest for DateTime field [1], I discover that in 1.2 and 1.4
the precision of timestamp for create_date and write_date became of 1 second.
This is fixed in dev branch with [2].
For 1.2 and 1.4, we can not fixed because it is a change in the database
structure. So what is the possible issue of this lost of precision? In fact,
it has only issue on the optimist lock behavior that is implemented in the
tryton client.
For those who want to update their databases, you can just take the lines [3]
and run an update.


PS: one more example of the useful of unittest :-)

[1] http://hg.tryton.org/hgwebdir.cgi/trytond/rev/70d0a1966169
[2] http://hg.tryton.org/hgwebdir.cgi/trytond/rev/9e51e35baedf
[3] http://hg.tryton.org/hgwebdir.cgi/trytond/rev/9e51e35baedf#l3.7

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email: [email protected]
Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpbkOV24fdbK.pgp
Description: PGP signature

Reply via email to