]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
revert the unicode check from r6162, zxjdbc just needs the correct
authorPhilip Jenvey <pjenvey@underboss.org>
Wed, 22 Jul 2009 00:43:42 +0000 (00:43 +0000)
committerPhilip Jenvey <pjenvey@underboss.org>
Wed, 22 Jul 2009 00:43:42 +0000 (00:43 +0000)
description_encoding
fixes #1479

lib/sqlalchemy/connectors/zxJDBC.py
lib/sqlalchemy/engine/base.py

index 9d91b30ed13b0f4f99870b7ba3e73c2c85cb7376..3cdfeb32e46bf8c8cbead1878ecaeabcf3f7593c 100644 (file)
@@ -9,6 +9,7 @@ class ZxJDBCConnector(Connector):
     
     supports_unicode_binds = True
     supports_unicode_statements = sys.version > '2.5.0+'
+    description_encoding = None
     default_paramstyle = 'qmark'
     
     jdbc_db_name = None
index c3aeb54515bceeea8f1fd1a81538a58fd64419e3..7fff18d0239fbea58dcd886d32cd7805875555be 100644 (file)
@@ -1639,7 +1639,7 @@ class ResultProxy(object):
 
         for i, (colname, coltype) in enumerate(metadata):
 
-            if self.dialect.description_encoding and not isinstance(colname, unicode):
+            if self.dialect.description_encoding:
                 colname = colname.decode(self.dialect.description_encoding)
 
             if '.' in colname: