]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Corrected a lot of mssql test issues related to Binary being deprecated and replaced...
authorMichael Trier <mtrier@gmail.com>
Thu, 25 Feb 2010 08:37:59 +0000 (08:37 +0000)
committerMichael Trier <mtrier@gmail.com>
Thu, 25 Feb 2010 08:37:59 +0000 (08:37 +0000)
test/dialect/test_mssql.py

index b2fc860b4de9225dd9ece7698b4d6f9222f7be55..b9c730e4668b5077dcdf1cfa8885fc39e13745eb 100644 (file)
@@ -285,9 +285,9 @@ class ReflectionTest(TestBase, ComparesTables):
                    ForeignKey('engine_users.user_id')),
             Column('test6', types.DateTime, nullable=False),
             Column('test7', types.Text),
-            Column('test8', types.Binary),
+            Column('test8', types.LargeBinary),
             Column('test_passivedefault2', types.Integer, server_default='5'),
-            Column('test9', types.Binary(100)),
+            Column('test9', types.BINARY(100)),
             Column('test_numeric', types.Numeric()),
             test_needs_fk=True,
         )
@@ -1162,7 +1162,7 @@ class BinaryTest(TestBase, AssertsExecutionResults):
         Column('primary_id', Integer, Sequence('binary_id_seq', optional=True), primary_key=True),
         Column('data', mssql.MSVarBinary(8000)),
         Column('data_image', mssql.MSImage),
-        Column('data_slice', Binary(100)),
+        Column('data_slice', types.BINARY(100)),
         Column('misc', String(30)),
         # construct PickleType with non-native pickle module, since cPickle uses relative module
         # loading and confuses this test's parent package 'sql' with the 'sqlalchemy.sql' package relative
@@ -1199,7 +1199,7 @@ class BinaryTest(TestBase, AssertsExecutionResults):
             binary_table.select(order_by=binary_table.c.primary_id),
             text("select * from binary_table order by binary_table.primary_id",
                  typemap=dict(data=mssql.MSVarBinary(8000), data_image=mssql.MSImage,
-                              data_slice=Binary(100), pickled=PickleType, mypickle=MyPickleType),
+                              data_slice=types.BINARY(100), pickled=PickleType, mypickle=MyPickleType),
                  bind=testing.db)
         ):
             l = stmt.execute().fetchall()