diff options
| author | Michael Trier <mtrier@gmail.com> | 2008-10-04 23:46:02 +0000 |
|---|---|---|
| committer | Michael Trier <mtrier@gmail.com> | 2008-10-04 23:46:02 +0000 |
| commit | cba429c0bcd343d037945ff6452f5d10989db761 (patch) | |
| tree | 4a1c3ff3bc203b79bfc1cca1f5a0e5ed767158ac | |
| parent | c9afdb5072ccaffb73e29853dbade1eb0237157b (diff) | |
| download | sqlalchemy-cba429c0bcd343d037945ff6452f5d10989db761.tar.gz | |
Change in #1165 tests to prevent MySQL from choking on a varchar without a length.
| -rw-r--r-- | test/sql/testtypes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sql/testtypes.py b/test/sql/testtypes.py index 2600cebd9..5d10c5750 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() |
