From 4ecd352a9fbb9dbac7b428fe0f098f665c1f0cb1 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 29 Apr 2020 19:46:43 -0400 Subject: Improve rendering of core statements w/ ORM elements This patch contains a variety of ORM and expression layer tweaks to support ORM constructs in select() statements, without the 1.3.x requiremnt in Query that a full _compile_context() + new select() is needed in order to get a working statement object. Includes such tweaks as the ability to implement aliased class of an aliased class, as we are looking to fully support ACs against subqueries, as well as the ability to access anonymously-labeled ColumnProperty expressions within subqueries by naming the ".key" of the label after the property key. Some tuning to query.join() as well as ORMJoin internals to allow things to work more smoothly. Change-Id: Id810f485c5f7ed971529489b84694e02a3356d6d --- lib/sqlalchemy/engine/cursor.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/sqlalchemy/engine') diff --git a/lib/sqlalchemy/engine/cursor.py b/lib/sqlalchemy/engine/cursor.py index c32427644..1d832e4af 100644 --- a/lib/sqlalchemy/engine/cursor.py +++ b/lib/sqlalchemy/engine/cursor.py @@ -117,8 +117,6 @@ class CursorResultMetaData(ResultMetaData): compiled_statement = context.compiled.statement invoked_statement = context.invoked_statement - # same statement was invoked as the one we cached against, - # return self if compiled_statement is invoked_statement: return self -- cgit v1.2.1