diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-23 19:53:07 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-23 19:53:07 +0000 |
commit | 05d5fc11d92e4d46ba9af1fd2e1bc2ad11353d19 (patch) | |
tree | fa6cad94858761ff0887fb7b52c8071813af028c /lib/sqlalchemy/schema.py | |
parent | d7a8111d43045a12bfd7353f4643d5a325cf3749 (diff) | |
download | sqlalchemy-05d5fc11d92e4d46ba9af1fd2e1bc2ad11353d19.tar.gz |
- 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.)
Diffstat (limited to 'lib/sqlalchemy/schema.py')
0 files changed, 0 insertions, 0 deletions