From: Michael Trier Date: Sat, 4 Oct 2008 23:46:02 +0000 (+0000) Subject: Change in #1165 tests to prevent MySQL from choking on a varchar without a length. X-Git-Tag: rel_0_5rc2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cba429c0bcd343d037945ff6452f5d10989db761;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Change in #1165 tests to prevent MySQL from choking on a varchar without a length. --- diff --git a/test/sql/testtypes.py b/test/sql/testtypes.py index 2600cebd91..5d10c57501 100644 --- a/test/sql/testtypes.py +++ b/test/sql/testtypes.py @@ -819,7 +819,7 @@ class CallableTest(TestBase): ucode = partial(Unicode, assert_unicode=None) thing_table = Table('thing', meta, - Column('name', ucode, primary_key=True) + Column('name', ucode(20)) ) assert isinstance(thing_table.c.name.type, Unicode) thing_table.create() @@ -828,7 +828,7 @@ class CallableTest(TestBase): ucode = partial(Unicode, assert_unicode=None) thang_table = Table('thang', meta, - Column('name', type_=ucode, primary_key=True) + Column('name', type_=ucode(20), primary_key=True) ) assert isinstance(thang_table.c.name.type, Unicode) thang_table.create()