]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added MSTinyInteger to MS-SQL [ticket:263]
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 12 Aug 2006 20:28:17 +0000 (20:28 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 12 Aug 2006 20:28:17 +0000 (20:28 +0000)
CHANGES
lib/sqlalchemy/databases/mssql.py

diff --git a/CHANGES b/CHANGES
index c5c2e81fa58f646858e3d410f2ad1ac0423f094f..900f485d03ce2c15ee107b20153a63d0bf16b946 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -46,6 +46,7 @@ max, min, etc.) on a SelectResults that has an ORDER BY clause
 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
index 414ca87e746c3b7ff5ee0b52d57d9b82b3e004aa..3c52c522abad27307d7c5782f6c8f73d2900ad78 100644 (file)
@@ -92,6 +92,10 @@ class MSInteger(sqltypes.Integer):
     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"
@@ -174,7 +178,7 @@ colspecs = {
 ischema_names = {
     'int' : MSInteger,
     'smallint' : MSSmallInteger,
-    'tinyint' : MSSmallInteger,
+    'tinyint' : MSTinyInteger,
     'varchar' : MSString,
     'char' : MSChar,
     'text' : MSText,