diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-03-08 15:32:21 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-03-08 15:32:21 -0400 |
| commit | a421106c9d1d660af7c5d9aba5928dda20c950e1 (patch) | |
| tree | 504426815dc61a86db8ea217a2c9f921fca03599 /lib/sqlalchemy/orm/base.py | |
| parent | a92f6662b4e15d5924a686a46d1a6d9b7aa958d5 (diff) | |
| download | sqlalchemy-a421106c9d1d660af7c5d9aba5928dda20c950e1.tar.gz | |
- random performance whacking vs. 0.9, in particular we have to watch
for the slots-based __getattr__ thing getting hit
Diffstat (limited to 'lib/sqlalchemy/orm/base.py')
| -rw-r--r-- | lib/sqlalchemy/orm/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/base.py b/lib/sqlalchemy/orm/base.py index 875443e60..c3f95fa10 100644 --- a/lib/sqlalchemy/orm/base.py +++ b/lib/sqlalchemy/orm/base.py @@ -327,7 +327,7 @@ def _is_mapped_class(entity): insp = inspection.inspect(entity, False) return insp is not None and \ - hasattr(insp, "mapper") and \ + not insp.is_clause_element and \ ( insp.is_mapper or insp.is_aliased_class |
