Unicode type with no field length not encoding/decoding data.

Issue #601 resolved
Former user created an issue

Under certain circumstances a column defined as Unicode or Unicode() will not return a unicode string. Changing the definition so the column's length is not None, but keeping the same database schema, will cause strings to be returned as Unicode again.

This occurs when using MySQL as the backend.

Two scripts run sequentially can show this behaviour:

http://paste.turbogears.org/paste/1379 - This script will create the correct db schema in the table but will fail when trying to insert the data.

http://paste.turbogears.org/paste/1380 - This script uses the same schema as the first but runs successfully, just by adding lengths to the column's definition.

Comments (1)

  1. Log in to comment