]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
only enable WITH_UNICODE when >= cx_Oracle v5
authorPhilip Jenvey <pjenvey@underboss.org>
Sat, 13 Mar 2010 18:20:57 +0000 (10:20 -0800)
committerPhilip Jenvey <pjenvey@underboss.org>
Sat, 13 Mar 2010 18:20:57 +0000 (10:20 -0800)
lib/sqlalchemy/dialects/oracle/cx_oracle.py

index ab92cc46637f33cb0fed2d37a3d6f583afde4a9c..32c52b4e640ff91a149ef014f45281d426f424b2 100644 (file)
@@ -350,8 +350,8 @@ class Oracle_cx_oracle(OracleDialect):
         elif not hasattr(self.dbapi, 'UNICODE'):
             # cx_Oracle WITH_UNICODE mode.  *only* python
             # unicode objects accepted for anything
-            self.supports_unicode_statements = True
-            self.supports_unicode_binds = True
+            self.supports_unicode_statements = cx_oracle_ver >= (5, 0)
+            self.supports_unicode_binds = cx_oracle_ver >= (5, 0)
             self._cx_oracle_with_unicode = True
         else:
             self._cx_oracle_with_unicode = False