diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-12-07 23:08:42 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-12-07 23:08:42 +0000 |
commit | 048f70ce85d254eff0b5ccf16fd4e15274b0bc6a (patch) | |
tree | 41e964852135c7b56142af3ac313b0355470e562 /test/dialect/test_sqlite.py | |
parent | 90efddbb1d52e7c26bb71e4b1c2dea121d3a0f8e (diff) | |
download | sqlalchemy-048f70ce85d254eff0b5ccf16fd4e15274b0bc6a.tar.gz |
- sqlite dialect properly generates CREATE INDEX for a table
that is in an alternate schema. [ticket:1439]
Diffstat (limited to 'test/dialect/test_sqlite.py')
-rw-r--r-- | test/dialect/test_sqlite.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/dialect/test_sqlite.py b/test/dialect/test_sqlite.py index 2d5cb1805..7fced60d9 100644 --- a/test/dialect/test_sqlite.py +++ b/test/dialect/test_sqlite.py @@ -69,7 +69,7 @@ class TestTypes(TestBase, AssertsExecutionResults): bindproc = t.dialect_impl(dialect).bind_processor(dialect) assert not bindproc or isinstance(bindproc(u"some string"), unicode) - + def test_type_reflection(self): # (ask_for, roundtripped_as_if_different) specs = [( String(), String(), ), @@ -324,6 +324,18 @@ class DialectTest(TestBase, AssertsExecutionResults): isolation_level="FOO") + def test_create_index_with_schema(self): + """Test creation of index with explicit schema""" + + meta = MetaData(testing.db) + t = Table('foo', meta, Column('bar', String, index=True), schema='main') + + try: + meta.create_all() + finally: + meta.drop_all() + + class SQLTest(TestBase, AssertsCompiledSQL): """Tests SQLite-dialect specific compilation.""" |