]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added "unicode_errors" parameter to String, Unicode, etc.
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Feb 2010 19:53:07 +0000 (19:53 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Feb 2010 19:53:07 +0000 (19:53 +0000)
commit05d5fc11d92e4d46ba9af1fd2e1bc2ad11353d19
treefa6cad94858761ff0887fb7b52c8071813af028c
parentd7a8111d43045a12bfd7353f4643d5a325cf3749
- Added "unicode_errors" parameter to String, Unicode, etc.
Behaves like the 'errors' keyword argument to
the standard library's string.decode() functions.   This flag
requires that `convert_unicode` is set to `"force"` - otherwise,
SQLAlchemy is not guaranteed to handle the task of unicode
conversion.   Note that this flag adds significant performance
overhead to row-fetching operations for backends that already
return unicode objects natively (which most DBAPIs do).  This
flag should only be used as an absolute last resort for reading
strings from a column with varied or corrupted encodings,
which only applies to databases that accept invalid encodings
in the first place (i.e. MySQL. *not* PG, Sqlite, etc.)
CHANGES
lib/sqlalchemy/processors.py
lib/sqlalchemy/types.py
test/aaa_profiling/test_zoomark_orm.py
test/sql/test_types.py