|
From: Skip M. <ski...@gm...> - 2007-05-25 17:13:03
|
MySQLdb allows the user to control mapping between Python types and Sybase
types on-the-fly using a converters argument to the connection constructor.
We need this sort of functionality at work to support some legacy Python
apps which expect dates to be represented in Unix epoch time, e.g.:
conn = Connection(converters={DateTimeType: _dt_as_float})
I implemented this in python-sybase 0.36 but would like to stop maintaining
my own forked version of the module. Is there some way to control this
mapping on a case-by-case basis in 0.38pre1?
Thx,
--
Skip Montanaro - sk...@po... - http://www.webfast.com/~skip/
"The hippies and the hipsters did some great stuff in the sixties,
but the geeks pulled their weight too." -- Billy Bragg
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Python-sybase-misc mailing list
Pyt...@li...
https://lists.sourceforge.net/lists/listinfo/python-sybase-misc
|