1. idank
  2. sqlalchemy

Commits

Michael Trier  committed 162e7c6

Corrected issue on mssql where max_identifier_length was not being respected.

  • Participants
  • Parent commits 4313f0f
  • Branches default

Comments (0)

Files changed (2)

File CHANGES

View file
 - mssql
     - Preliminary support for pymssql 1.0.1
 
+    - Corrected issue on mssql where max_identifier_length was
+      not being respected.
+
 - extensions
 
     - Fixed a recursive pickling issue in serializer, triggered

File lib/sqlalchemy/databases/mssql.py

View file
         self.text_as_varchar = bool(text_as_varchar)
         self.use_scope_identity = bool(use_scope_identity)
         self.has_window_funcs =  bool(has_window_funcs)
-        self.max_identifier_length = int(max_identifier_length or 0) or 128
+        self.max_identifier_length = int(max_identifier_length or 0) or \
+                self.max_identifier_length
         super(MSSQLDialect, self).__init__(**opts)
 
     @classmethod