Bugs item #2924991, was opened at 2010-01-02 19:12
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2924991&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: MySQL
Group: SQLObject release (specify)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fails in col.py if DBMS does not specify encoding
Initial Comment:
If the DBMS does not have an encoding specified then SQLObject fails in col.py complaining that the 2nd parameter must be a string not None. This situation could easily exist in databases migrated from MySQL 3.x.
The solution seems to be to add a test in the 'from_python' method of StringValidator'. I put it after the call to getattr.
if dbEncoding == None:
dbEncoding = 'ascii'
Code was added via SQLObject-0.12.0-py2.6.egg
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2924991&group_id=74338
|