summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/databases')
-rw-r--r--lib/sqlalchemy/databases/mssql.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/mssql.py b/lib/sqlalchemy/databases/mssql.py
index 414ca87e7..3c52c522a 100644
--- a/lib/sqlalchemy/databases/mssql.py
+++ b/lib/sqlalchemy/databases/mssql.py
@@ -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,