]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add test for [ticket:2159] rel_0_7_1
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 5 Jun 2011 16:32:04 +0000 (12:32 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 5 Jun 2011 16:32:04 +0000 (12:32 -0400)
test/dialect/test_mssql.py

index 87ac521d75aa2207aca8071a5cbb366275d9cfd9..ef5d26195930af3c99639ccc8c268329ea735240 100644 (file)
@@ -1247,8 +1247,10 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, ComparesTables):
             type_, args, kw, res, requires = spec[0:5]
             if requires and testing._is_excluded('mssql', *requires) \
                 or not requires:
-                table_args.append(Column('c%s' % index, type_(*args,
-                                  **kw), nullable=None))
+                c = Column('c%s' % index, type_(*args,
+                                  **kw), nullable=None)
+                testing.db.dialect.type_descriptor(c.type)
+                table_args.append(c)
         dates_table = Table(*table_args)
         gen = testing.db.dialect.ddl_compiler(testing.db.dialect,
                 schema.CreateTable(dates_table))