summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-01-23 19:44:06 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2010-01-23 19:44:06 +0000
commitfc92d14bbe3077ff94df108bf53ec77e0da83dd8 (patch)
treea893a688e404966a1727477580425e95cb7f1236 /test/sql
parent2d15d9b0d0b20190d5aa348edaf4b398263464f7 (diff)
downloadsqlalchemy-fc92d14bbe3077ff94df108bf53ec77e0da83dd8.tar.gz
- types.Binary is renamed to types.LargeBinary, it only
produces BLOB, BYTEA, or a similar "long binary" type. New base BINARY and VARBINARY types have been added to access these MySQL/MS-SQL specific types in an agnostic way [ticket:1664].
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_types.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/sql/test_types.py b/test/sql/test_types.py
index b31015d85..4b7cba73c 100644
--- a/test/sql/test_types.py
+++ b/test/sql/test_types.py
@@ -63,9 +63,9 @@ class TypeAffinityTest(TestBase):
(Integer(), Integer(), True),
(Text(), String(), True),
(Text(), Unicode(), True),
- (Binary(), Integer(), False),
- (Binary(), PickleType(), True),
- (PickleType(), Binary(), True),
+ (LargeBinary(), Integer(), False),
+ (LargeBinary(), PickleType(), True),
+ (PickleType(), LargeBinary(), True),
(PickleType(), PickleType(), True),
]:
eq_(t1._compare_type_affinity(t2), comp, "%s %s" % (t1, t2))
@@ -466,8 +466,8 @@ class BinaryTest(TestBase, AssertsExecutionResults):
binary_table = Table('binary_table', MetaData(testing.db),
Column('primary_id', Integer, Sequence('binary_id_seq', optional=True), primary_key=True),
- Column('data', Binary),
- Column('data_slice', Binary(100)),
+ Column('data', LargeBinary),
+ Column('data_slice', LargeBinary(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
@@ -516,7 +516,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={'pickled':PickleType, 'mypickle':MyPickleType, 'data':Binary, 'data_slice':Binary},
+ typemap={'pickled':PickleType, 'mypickle':MyPickleType, 'data':LargeBinary, 'data_slice':LargeBinary},
bind=testing.db)
):
l = stmt.execute().fetchall()