]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support "blank" schema when MetaData.schema is set
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 May 2016 15:07:02 +0000 (11:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 May 2016 15:43:38 +0000 (11:43 -0400)
commitc124fa36d5af2c85c87c51d24e92387adffbe3d2
treee065a4fedb2f79a0d7f5267a91fa5e789befeb8b
parentfb45433f1504978c63a1318a0dc616d79cfff04d
Support "blank" schema when MetaData.schema is set

Previously, it was impossible to have a Table that has
None for a schema name when the "schema" parameter on
MetaData was set.  A new symbol sqlalchemy.schema.BLANK_SCHEMA
is added which indicates that the schema name should unconditionally
be set to None.  In particular, this value must be passed within
cross-schema foreign key reflection, so that a Table which
is in the "default" schema can be represented properly.

Fixes: #3716
Change-Id: I3d24f99c22cded206c5379fd32a225e74edb7a8e
doc/build/changelog/changelog_10.rst
doc/build/core/metadata.rst
lib/sqlalchemy/__init__.py
lib/sqlalchemy/engine/reflection.py
lib/sqlalchemy/schema.py
lib/sqlalchemy/sql/schema.py
test/dialect/postgresql/test_reflection.py
test/engine/test_reflection.py
test/sql/test_metadata.py