Bugs item #2924991, was opened at 2010-01-02 22:12
Message generated for change (Settings changed) made by phd
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: General
Group: SQLObject release (specify)
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Oleg Broytman (phd)
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
----------------------------------------------------------------------
>Comment By: Oleg Broytman (phd)
Date: 2010-01-06 19:01
Message:
Fixed in the revisions 4069-4071 in the form
dbEncoding = getattr(connection, "dbEncoding") or "ascii"
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2924991&group_id=74338
|