summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-05-05 10:39:18 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-05-05 10:39:18 -0400
commit8f830d78ba1d68ea3e10006e10e65ddb571f45ee (patch)
tree4aeb7ffef8a3feef47acf18d6f32fcfecd04d6cd /lib
parent339e2c13b0fc8e95a47d00c0f8fc5afc4b6dff9a (diff)
downloadsqlalchemy-8f830d78ba1d68ea3e10006e10e65ddb571f45ee.tar.gz
- add another note re: 339e2c13b0fc8e95a47d00c0f8fc5afc4b6dff9a
which clarifies that ForeignKey circumvents this logic as a "convenience". issue #3978 is updated to address trying to make this consistent. Change-Id: I089acaa89f11b7a6310c2bf32916e26eb62ab9c0
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/sql/schema.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py
index 9a8f06c9e..b7d6743be 100644
--- a/lib/sqlalchemy/sql/schema.py
+++ b/lib/sqlalchemy/sql/schema.py
@@ -3523,6 +3523,18 @@ class MetaData(SchemaItem):
schema-qualified name, e.g.
``my_metadata.tables["some_schema.my_table"]``.
+ The current behavior of the :class:`.ForeignKey` object is to
+ circumvent this restriction, where it can locate a table given
+ the table name alone, where the schema will be assumed to be
+ present from this value as specified on the owning
+ :class:`.MetaData` collection. However, this implies that a
+ table qualified with BLANK_SCHEMA cannot currently be referred
+ to by string name from :class:`.ForeignKey`. Other parts of
+ SQLAlchemy such as Declarative may not have similar behaviors
+ built in, however may do so in a future release, along with a
+ consistent method of referring to a table in BLANK_SCHEMA.
+
+
.. seealso::
:paramref:`.Table.schema`