From c124fa36d5af2c85c87c51d24e92387adffbe3d2 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 18 May 2016 11:07:02 -0400 Subject: 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 --- lib/sqlalchemy/schema.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/sqlalchemy/schema.py') diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index 5b703f7b6..bd0cbe54e 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -15,6 +15,7 @@ from .sql.base import ( from .sql.schema import ( + BLANK_SCHEMA, CheckConstraint, Column, ColumnDefault, -- cgit v1.2.1