diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-06-13 16:09:13 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-06-13 16:09:13 -0400 |
| commit | 03e0f776beff157886d174284847868c8f2aed1d (patch) | |
| tree | 6afc517e0ecb8a6cf11dfafc0d7ab5cb2b788e58 /lib | |
| parent | 7378611832a8b58ce040dab3ee0739209c4c8854 (diff) | |
| download | sqlalchemy-03e0f776beff157886d174284847868c8f2aed1d.tar.gz | |
- The warning emitted by the Unicode and String types
with convert_unicode=True no longer embeds the actual
value passed. This so that the Python warning
registry does not continue to grow in size, the warning
is emitted once as per the warning filter settings,
and large string values don't pollute the output.
[ticket:1822]
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py index 356ec2ecb..84bd85ff2 100644 --- a/lib/sqlalchemy/types.py +++ b/lib/sqlalchemy/types.py @@ -729,7 +729,7 @@ class String(Concatenable, TypeEngine): if isinstance(value, str): # end Py2K util.warn("Unicode type received non-unicode bind " - "param value %r" % value) + "param value.") return value return process else: @@ -741,7 +741,7 @@ class String(Concatenable, TypeEngine): return encoder(value, self.unicode_error)[0] elif value is not None: util.warn("Unicode type received non-unicode bind " - "param value %r" % value) + "param value") return value return process else: |
