summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/mssql/information_schema.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-01-12 19:51:13 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2013-01-12 19:51:13 -0500
commit46a9209cde6e9e8bf333eada55ef45193f3f4fff (patch)
tree7697a03cc8951fc8d9d93fca8ebef821395d4a32 /lib/sqlalchemy/dialects/mssql/information_schema.py
parent84260339dd52fa4a7d20e710f54451cea55a2eac (diff)
downloadsqlalchemy-46a9209cde6e9e8bf333eada55ef45193f3f4fff.tar.gz
Added a py3K conditional around unnecessary .decode()
call in mssql information schema, fixes reflection in Py3K. Also in 0.7.10. [ticket:2638]
Diffstat (limited to 'lib/sqlalchemy/dialects/mssql/information_schema.py')
-rw-r--r--lib/sqlalchemy/dialects/mssql/information_schema.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/mssql/information_schema.py b/lib/sqlalchemy/dialects/mssql/information_schema.py
index 15551e5e4..35ce2450e 100644
--- a/lib/sqlalchemy/dialects/mssql/information_schema.py
+++ b/lib/sqlalchemy/dialects/mssql/information_schema.py
@@ -16,8 +16,10 @@ class CoerceUnicode(TypeDecorator):
impl = Unicode
def process_bind_param(self, value, dialect):
+ # Py2K
if isinstance(value, str):
value = value.decode(dialect.encoding)
+ # end Py2K
return value
schemata = Table("SCHEMATA", ischema,