summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/elements.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-12-07 15:46:54 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-12-07 15:46:54 +0000
commitca186ff935718e3e57bf9ecbf2619cd6109996d0 (patch)
tree568cc3ed1315feb68af2c78344a5edef89014e64 /lib/sqlalchemy/sql/elements.py
parent1411f0bc4898737e3a575933e30c85a84b0bfb02 (diff)
parent22deafe15289d2be55682e1632016004b02b62c0 (diff)
downloadsqlalchemy-ca186ff935718e3e57bf9ecbf2619cd6109996d0.tar.gz
Merge "Warn when caching is disabled / document" into main
Diffstat (limited to 'lib/sqlalchemy/sql/elements.py')
-rw-r--r--lib/sqlalchemy/sql/elements.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index a7b86d3ec..00270c9b5 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -3646,6 +3646,8 @@ class CollectionAggregate(UnaryExpression):
"""
+ inherit_cache = True
+
@classmethod
def _create_any(cls, expr):
"""Produce an ANY expression.
@@ -3953,7 +3955,7 @@ class IndexExpression(BinaryExpression):
"""Represent the class of expressions that are like an "index"
operation."""
- pass
+ inherit_cache = True
class GroupedElement(ClauseElement):
@@ -5040,14 +5042,17 @@ class _IdentifiedClause(Executable, ClauseElement):
class SavepointClause(_IdentifiedClause):
__visit_name__ = "savepoint"
+ inherit_cache = False
class RollbackToSavepointClause(_IdentifiedClause):
__visit_name__ = "rollback_to_savepoint"
+ inherit_cache = False
class ReleaseSavepointClause(_IdentifiedClause):
__visit_name__ = "release_savepoint"
+ inherit_cache = False
class quoted_name(util.MemoizedSlots, str):