]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure .mapper is set on _ColumnEntity
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 21 Oct 2016 13:34:32 +0000 (09:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 21 Oct 2016 14:42:14 +0000 (10:42 -0400)
commit1f32d014da5d40406cd5d3996be5283c2fc57b26
tree81c267cfebe0ca9e00393270e07a62c4d64dc694
parent232eec47d13974e9c7bc7bafacba93ddbd59747d
Ensure .mapper is set on _ColumnEntity

_ColumnEntity didn't seem to have .mapper present, which
due to the way _mapper_zero() worked didn't tend to come
across it.   With :ticket:`3608` _mapper_zero() has
been simplified so make sure this is now present.
Also ensure that _select_from_entity is an entity and
not a mapped class, though this does not seem to matter
at the moment.

Fixes: #3836
Change-Id: Id6dae8e700269b97de3b01562edee95ac1e01f80
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/orm/query.py
test/orm/test_query.py