Commits

paj committed 4b3db6d

Merge changeset [3343] into rel_0_3 branch

Comments (0)

Files changed (1)

lib/sqlalchemy/databases/mssql.py

 import sqlalchemy.ansisql as ansisql
 import sqlalchemy.types as sqltypes
 import sqlalchemy.exceptions as exceptions
+import sys
 
     
 class MSNumeric(sqltypes.Numeric):
 
     def supports_unicode_statements(self):
         """indicate whether the DBAPI can receive SQL statements as Python unicode strings"""
-        return True
+        return sys.maxunicode == 65535
 
     def make_connect_string(self, keys):
         connectors = ["Driver={SQL Server}"]