Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Menu

Commit [r6]  Maximize  Restore  History

Updated _mysql to do some type conversion. Adds a dictionary type_conv

which makes MySQL field types to Python functions which perform the
conversion. All numeric types except DECIMAL are mapped into either
PyInt or PyLong, and the floating point types are mapped into PyFloat by
default. Types which are not represented in the dictionary are returned
as strings.

Modified MySQLdb to adjust type_conv so that the various date/time types
are returned as DateTime objects.

Bug: If you were to delete or assign type_conv, bad things would happen.
I haven't actually tried this, but it wouldn't be good. May add an extra
reference count to prevent this, haven't really decided.

adustman 1999-03-17

changed /trunk/mysql/MySQLdb.py
changed /trunk/mysql/_mysqlmodule.c
/trunk/mysql/MySQLdb.py Diff Switch to side-by-side view
Loading...
/trunk/mysql/_mysqlmodule.c Diff Switch to side-by-side view
Loading...