summaryrefslogtreecommitdiff
path: root/test/sql/test_metadata.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-12-23 22:59:44 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2015-12-23 22:59:44 -0500
commitc7d6c667b53d96a65e0dedcb83c098e03d4c7453 (patch)
tree7ca6a760327812581139995de29f93e4af26a334 /test/sql/test_metadata.py
parent93b48e6aba6b1c20f525a0a22d58fc57ee4637f5 (diff)
downloadsqlalchemy-c7d6c667b53d96a65e0dedcb83c098e03d4c7453.tar.gz
- Fixed an assertion that would raise somewhat inappropriately
if a :class:`.Index` were associated with a :class:`.Column` that is associated with a lower-case-t :class:`.TableClause`; the association should be ignored for the purposes of associating the index with a :class:`.Table`. fixes #3616
Diffstat (limited to 'test/sql/test_metadata.py')
-rw-r--r--test/sql/test_metadata.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/sql/test_metadata.py b/test/sql/test_metadata.py
index d4039a5fe..bbc318421 100644
--- a/test/sql/test_metadata.py
+++ b/test/sql/test_metadata.py
@@ -2068,6 +2068,13 @@ class IndexTest(fixtures.TestBase):
t.append_constraint, idx
)
+ def test_column_associated_w_lowercase_table(self):
+ from sqlalchemy import table
+ c = Column('x', Integer)
+ table('foo', c)
+ idx = Index('q', c)
+ is_(idx.table, None) # lower-case-T table doesn't have indexes
+
class ConstraintTest(fixtures.TestBase):