summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/base.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-05-10 20:04:20 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-05-10 20:04:20 +0000
commit39c2815fb25052c181f98ca52a57fd7449d7090c (patch)
treecb03e18c258121c44105da951dd807c8d422bb4b /lib/sqlalchemy/sql/base.py
parent8d399ec83ccb9bccc833abef62b5e9749ddb4913 (diff)
parentf0fc47c11986a0fa60b24c0fb62bd8b5a5306edd (diff)
downloadsqlalchemy-39c2815fb25052c181f98ca52a57fd7449d7090c.tar.gz
Merge "Correct cache key for proxy_owner, with_context_options"
Diffstat (limited to 'lib/sqlalchemy/sql/base.py')
-rw-r--r--lib/sqlalchemy/sql/base.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/sqlalchemy/sql/base.py b/lib/sqlalchemy/sql/base.py
index 6d65d9061..8ff907ef0 100644
--- a/lib/sqlalchemy/sql/base.py
+++ b/lib/sqlalchemy/sql/base.py
@@ -781,7 +781,10 @@ class Executable(roles.StatementRole, Generative):
_executable_traverse_internals = [
("_with_options", InternalTraversal.dp_executable_options),
- ("_with_context_options", ExtendedInternalTraversal.dp_plain_obj),
+ (
+ "_with_context_options",
+ ExtendedInternalTraversal.dp_with_context_options,
+ ),
("_propagate_attrs", ExtendedInternalTraversal.dp_propagate_attrs),
]
@@ -853,8 +856,8 @@ class Executable(roles.StatementRole, Generative):
These are callable functions that will
be given the CompileState object upon compilation.
- A second argument cache_args is required, which will be combined
- with the identity of the function itself in order to produce a
+ A second argument cache_args is required, which will be combined with
+ the ``__code__`` identity of the function itself in order to produce a
cache key.
"""