diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-11-03 19:48:07 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-11-03 19:48:07 +0000 |
| commit | 6acbb4fb93eb556de88847f8acc38c9bbf86fb2f (patch) | |
| tree | 693007f54674c5ce48942199553f5efdee7cee5c /test | |
| parent | cac9f6b3bb2bffea34c9371451cd070eb5d45a56 (diff) | |
| download | sqlalchemy-6acbb4fb93eb556de88847f8acc38c9bbf86fb2f.tar.gz | |
- simplify default schema name test
- MySQL + zxjdbc *is* unicode by default. it was the broken initialize()
Diffstat (limited to 'test')
| -rw-r--r-- | test/engine/test_reflection.py | 10 | ||||
| -rw-r--r-- | test/sql/test_types.py | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/test/engine/test_reflection.py b/test/engine/test_reflection.py index c2b2cc9cb..8ae75ad9c 100644 --- a/test/engine/test_reflection.py +++ b/test/engine/test_reflection.py @@ -837,18 +837,16 @@ class SchemaTest(TestBase): def test_explicit_default_schema(self): engine = testing.db - if testing.against('mysql+mysqldb'): - schema = testing.db.url.database - elif testing.against('postgresql'): - schema = 'public' - elif testing.against('sqlite'): + if testing.against('sqlite'): # Works for CREATE TABLE main.foo, SELECT FROM main.foo, etc., # but fails on: # FOREIGN KEY(col2) REFERENCES main.table1 (col1) schema = 'main' else: - schema = engine.dialect.get_default_schema_name(engine.connect()) + schema = engine.dialect.default_schema_name + assert bool(schema) + metadata = MetaData(engine) table1 = Table('table1', metadata, Column('col1', sa.Integer, primary_key=True), diff --git a/test/sql/test_types.py b/test/sql/test_types.py index 2750d5879..100ff8b78 100644 --- a/test/sql/test_types.py +++ b/test/sql/test_types.py @@ -263,7 +263,7 @@ class UnicodeTest(TestBase, AssertsExecutionResults): ('postgresql','psycopg2'), ('postgresql','pg8000'), ('postgresql','zxjdbc'), - #('mysql','zxjdbc'), # no unicode for MySQL + ('mysql','zxjdbc'), ('sqlite','pysqlite'), )), \ "name: %s driver %s returns_unicode_strings=%s" % \ |
