Help

#51 Precision lost from mxDateTime during queries

When working with PostgreSQL timestamps, round-trips
to/from Python wind up losing data (the
least-significant digits of the timestamp, 1000ths of
seconds and less). Result is that timestamps which
include 1000ths of seconds cannot be queried from
Python using mxDateTime values.

PyPgSQL should likely be using code something like the
following to format an mxDateTime value for a timestamp:

new.Format( '%Y-%m-%d %H:%M:%%s' )%( new.second, )

or

new.Format( '%Y-%m-%d %H:%M:%%r' )%( new.second, )

(difference being use of 'r' format, which will do as
much as possible to be sure that the resulting string
is capable of exactly producing the original format).