Commits

Mike Bayer  committed 52f91f1

added MSTinyInteger to MS-SQL [ticket:263]

  • Participants
  • Parent commits b55c396

Comments (0)

Files changed (2)

 fixes to mysql text types to work with this methodology
 [ticket:269] 
 - some fixes to sqlite date type organization
+- added MSTinyInteger to MS-SQL [ticket:263]
 
 0.2.6
 - big overhaul to schema to allow truly composite primary and foreign

File lib/sqlalchemy/databases/mssql.py

     def get_col_spec(self):
         return "INTEGER"
 
+class MSTinyInteger(sqltypes.Integer): 
+    def get_col_spec(self):
+        return "TINYINT"
+
 class MSSmallInteger(sqltypes.Smallinteger):
     def get_col_spec(self):
         return "SMALLINT"
 ischema_names = {
     'int' : MSInteger,
     'smallint' : MSSmallInteger,
-    'tinyint' : MSSmallInteger,
+    'tinyint' : MSTinyInteger,
     'varchar' : MSString,
     'char' : MSChar,
     'text' : MSText,