summaryrefslogtreecommitdiff
path: root/test/engine/test_reflection.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-08-09 19:45:20 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-08-09 19:45:20 -0400
commit8b505e7c241aba6afc32a83f870c8a0ca35c6f9c (patch)
treef9e46de6abf906be3a853eb5636c5838694534e7 /test/engine/test_reflection.py
parent2105032261fcaadd8f30c208e4def95a593bc4be (diff)
downloadsqlalchemy-8b505e7c241aba6afc32a83f870c8a0ca35c6f9c.tar.gz
- Narrowed the assumption made when reflecting
a foreign-key referenced table with schema in the current search path; an explicit schema will be applied to the referenced table only if it actually matches that of the referencing table, which also has an explicit schema. Previously it was assumed that "current" schema was synonymous with the full search_path. [ticket:2249]
Diffstat (limited to 'test/engine/test_reflection.py')
-rw-r--r--test/engine/test_reflection.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/engine/test_reflection.py b/test/engine/test_reflection.py
index e37125aef..c79e09ca8 100644
--- a/test/engine/test_reflection.py
+++ b/test/engine/test_reflection.py
@@ -963,6 +963,7 @@ class SchemaTest(fixtures.TestBase):
@testing.fails_on('sybase', 'FIXME: unknown')
def test_explicit_default_schema(self):
engine = testing.db
+ engine.connect().close()
if testing.against('sqlite'):
# Works for CREATE TABLE main.foo, SELECT FROM main.foo, etc.,