[python-win32] ODBC dates and buffers

Vernon Cole vernondcole at gmail.com
Wed Nov 12 03:20:28 CET 2008


+1 for an immediate switch to using datetime objects in odbc.
  That will make adodbapi and odbc a little more compatible. (They will
never be completely compatible since odbc was written to an earlier api
spec.)
 Because of historical reasons, adodbapi defaults to mxDateTime, if present,
and datetime if not. (It will also return old Python time objects if you ask
it to.)
. I am thinking that adodbapi should also default to datetime in some future
revision (Perhaps Roger's py3k version?). The present default has bit me
before. The two types don't support all of the same operations, so if you
install eGenix base suddenly your time comparisons quit working. My guess is
that most people who use mxDateTime also use mxODBC rather than either of
our free api's, so a change in default would not bite as many people as the
status quo.
--
Vernon Cole
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20081111/790d41fe/attachment-0001.htm>


More information about the python-win32 mailing list