]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Only use schema_translate_map on SchemaItem subclasses
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Feb 2017 19:03:47 +0000 (14:03 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Feb 2017 19:52:28 +0000 (14:52 -0500)
commitb4e880534e1e02815e95f105a4363bef8ee86130
tree751f036c9e757887c7b092f36839dc5963ece1e3
parentff2090336f7c160e58774e7504bd4f7aca919dff
Only use schema_translate_map on SchemaItem subclasses

Fixed bug in new "schema translate" feature where the translated schema
name would be invoked in terms of an alias name when rendered along
with a column expression; occurred only when the source translate
name was "None".   The "schema translate" feature now only takes
effect for :class:`.SchemaItem` and :class:`.SchemaType` subclasses,
that is, objects that correspond to a DDL-creatable structure in
a database.

Change-Id: Ie8cb35aeaba2c67efec8c8c57c219e4dd346e44a
Fixes: #3924
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/selectable.py
lib/sqlalchemy/sql/sqltypes.py
test/sql/test_compiler.py