summaryrefslogtreecommitdiff
path: root/test/engine/reflection.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-10-14 19:15:09 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-10-14 19:15:09 +0000
commit5b92c3d097b487001c4152715a22c4de87fad871 (patch)
treeda65ceee13d4d76c05ef5b578a144981219b979d /test/engine/reflection.py
parent79dafdf3d4ffe9cb56ee0b03651b92e7e7b7353e (diff)
downloadsqlalchemy-5b92c3d097b487001c4152715a22c4de87fad871.tar.gz
- PG reflection, upon seeing the default schema name being used explicitly
as the "schema" argument in a Table, will assume that this is the the user's desired convention, and will explicitly set the "schema" argument in foreign-key-related reflected tables, thus making them match only with Table constructors that also use the explicit "schema" argument (even though its the default schema). In other words, SA assumes the user is being consistent in this usage.
Diffstat (limited to 'test/engine/reflection.py')
-rw-r--r--test/engine/reflection.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/engine/reflection.py b/test/engine/reflection.py
index 82a04874a..4f1d18d5d 100644
--- a/test/engine/reflection.py
+++ b/test/engine/reflection.py
@@ -696,7 +696,7 @@ class UnicodeTest(PersistTest):
class SchemaTest(PersistTest):
# this test should really be in the sql tests somewhere, not engine
@testing.unsupported('sqlite', 'firebird')
- def testiteration(self):
+ def test_iteration(self):
metadata = MetaData()
table1 = Table('table1', metadata,
Column('col1', Integer, primary_key=True),
@@ -719,10 +719,8 @@ class SchemaTest(PersistTest):
assert buf.index("CREATE TABLE someschema.table1") > -1
assert buf.index("CREATE TABLE someschema.table2") > -1
- # TODO: figure out why postgres screws up on this test
- #@testing.supported('mysql','postgres')
- @testing.supported('mysql')
- def testcreate(self):
+ @testing.supported('mysql','postgres')
+ def test_explicit_default_schema(self):
engine = testbase.db
schema = engine.dialect.get_default_schema_name(engine)
#engine.echo = True