mysql MSFloat fail to be "repr"
Issue #775
resolved
How to reproduce
from sqlalchemy.databases.mysql import MSFloat f = MSFloat() repr(f) Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/types.py", line 124, in repr
AttributeError: 'MSFloat' object has no attribute 'length'
This seems to be related to mysql.MSFloat taking an optional 'length' argument, and setting (or not) an attribute.
I see two way of solving the issue : - overload repr in MSFloat - always set the length attribute (I prefer this one, see attached patch)
Comments (3)
-
Account Deleted -
- changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.4.0 (automated comment)
- Log in to comment
I forgot to format the source code in the description :
Leads to :