From cc718cccc0bf8a01abdf4068c7ea4f32c9322af6 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 4 Jun 2019 17:29:20 -0400 Subject: Run row value processors up front as part of a larger series of changes to generalize row-tuples, RowProxy becomes plain Row and is no longer a "proxy"; the DBAPI row is now copied directly into the Row when constructed, result handling occurs at once. Subsequent changes will break out Row into a new version that behaves fully a tuple. Change-Id: I2ffa156afce5d21c38f28e54c3a531f361345dd5 --- lib/sqlalchemy/sql/compiler.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql/compiler.py') diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 8df93a60b..5e432a74c 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -251,6 +251,12 @@ COMPOUND_KEYWORDS = { } +RM_RENDERED_NAME = 0 +RM_NAME = 1 +RM_OBJECTS = 2 +RM_TYPE = 3 + + class Compiled(object): """Represent a compiled SQL or DDL expression. @@ -710,7 +716,9 @@ class SQLCompiler(Compiled): @util.dependencies("sqlalchemy.engine.result") def _create_result_map(self, result): """utility method used for unit tests only.""" - return result.ResultMetaData._create_result_map(self._result_columns) + return result.ResultMetaData._create_description_match_map( + self._result_columns + ) def default_from(self): """Called when a SELECT statement has no froms, and no FROM clause is -- cgit v1.2.1