diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-08-12 20:28:17 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-08-12 20:28:17 +0000 |
| commit | 98933ba84d6618d5fba366e556932223964c7200 (patch) | |
| tree | 9c31c9a0c3a283ee422f405256122f6b82f5ef9d | |
| parent | cf7e168345cd5724bf4f38cb6db85c9e2ca82463 (diff) | |
| download | sqlalchemy-98933ba84d6618d5fba366e556932223964c7200.tar.gz | |
added MSTinyInteger to MS-SQL [ticket:263]
| -rw-r--r-- | CHANGES | 1 | ||||
| -rw-r--r-- | lib/sqlalchemy/databases/mssql.py | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -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 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, |
