diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2021-12-07 15:46:54 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2021-12-07 15:46:54 +0000 |
| commit | ca186ff935718e3e57bf9ecbf2619cd6109996d0 (patch) | |
| tree | 568cc3ed1315feb68af2c78344a5edef89014e64 /lib/sqlalchemy/dialects | |
| parent | 1411f0bc4898737e3a575933e30c85a84b0bfb02 (diff) | |
| parent | 22deafe15289d2be55682e1632016004b02b62c0 (diff) | |
| download | sqlalchemy-ca186ff935718e3e57bf9ecbf2619cd6109996d0.tar.gz | |
Merge "Warn when caching is disabled / document" into main
Diffstat (limited to 'lib/sqlalchemy/dialects')
| -rw-r--r-- | lib/sqlalchemy/dialects/mssql/base.py | 1 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/mysql/dml.py | 1 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/array.py | 1 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/dml.py | 1 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/ext.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/hstore.py | 8 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/sqlite/dml.py | 1 |
7 files changed, 15 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/mssql/base.py b/lib/sqlalchemy/dialects/mssql/base.py index f0a7364a3..5b38c4bb5 100644 --- a/lib/sqlalchemy/dialects/mssql/base.py +++ b/lib/sqlalchemy/dialects/mssql/base.py @@ -1353,6 +1353,7 @@ class TryCast(sql.elements.Cast): __visit_name__ = "try_cast" stringify_dialect = "mssql" + inherit_cache = True def __init__(self, *arg, **kw): """Create a TRY_CAST expression. diff --git a/lib/sqlalchemy/dialects/mysql/dml.py b/lib/sqlalchemy/dialects/mysql/dml.py index e2f78783c..790733cbf 100644 --- a/lib/sqlalchemy/dialects/mysql/dml.py +++ b/lib/sqlalchemy/dialects/mysql/dml.py @@ -25,6 +25,7 @@ class Insert(StandardInsert): """ stringify_dialect = "mysql" + inherit_cache = False @property def inserted(self): diff --git a/lib/sqlalchemy/dialects/postgresql/array.py b/lib/sqlalchemy/dialects/postgresql/array.py index ebe47c8d1..a8010c0fa 100644 --- a/lib/sqlalchemy/dialects/postgresql/array.py +++ b/lib/sqlalchemy/dialects/postgresql/array.py @@ -87,6 +87,7 @@ class array(expression.ClauseList, expression.ColumnElement): __visit_name__ = "array" stringify_dialect = "postgresql" + inherit_cache = True def __init__(self, clauses, **kw): clauses = [ diff --git a/lib/sqlalchemy/dialects/postgresql/dml.py b/lib/sqlalchemy/dialects/postgresql/dml.py index c561b73a1..4451639f3 100644 --- a/lib/sqlalchemy/dialects/postgresql/dml.py +++ b/lib/sqlalchemy/dialects/postgresql/dml.py @@ -35,6 +35,7 @@ class Insert(StandardInsert): """ stringify_dialect = "postgresql" + inherit_cache = False @util.memoized_property def excluded(self): diff --git a/lib/sqlalchemy/dialects/postgresql/ext.py b/lib/sqlalchemy/dialects/postgresql/ext.py index f779a8010..e323da8be 100644 --- a/lib/sqlalchemy/dialects/postgresql/ext.py +++ b/lib/sqlalchemy/dialects/postgresql/ext.py @@ -54,6 +54,7 @@ class aggregate_order_by(expression.ColumnElement): __visit_name__ = "aggregate_order_by" stringify_dialect = "postgresql" + inherit_cache = False def __init__(self, target, *order_by): self.target = coercions.expect(roles.ExpressionElementRole, target) @@ -99,6 +100,7 @@ class ExcludeConstraint(ColumnCollectionConstraint): __visit_name__ = "exclude_constraint" where = None + inherit_cache = False create_drop_stringify_dialect = "postgresql" diff --git a/lib/sqlalchemy/dialects/postgresql/hstore.py b/lib/sqlalchemy/dialects/postgresql/hstore.py index 2ade4b7c1..77220a33a 100644 --- a/lib/sqlalchemy/dialects/postgresql/hstore.py +++ b/lib/sqlalchemy/dialects/postgresql/hstore.py @@ -273,41 +273,49 @@ class hstore(sqlfunc.GenericFunction): type = HSTORE name = "hstore" + inherit_cache = True class _HStoreDefinedFunction(sqlfunc.GenericFunction): type = sqltypes.Boolean name = "defined" + inherit_cache = True class _HStoreDeleteFunction(sqlfunc.GenericFunction): type = HSTORE name = "delete" + inherit_cache = True class _HStoreSliceFunction(sqlfunc.GenericFunction): type = HSTORE name = "slice" + inherit_cache = True class _HStoreKeysFunction(sqlfunc.GenericFunction): type = ARRAY(sqltypes.Text) name = "akeys" + inherit_cache = True class _HStoreValsFunction(sqlfunc.GenericFunction): type = ARRAY(sqltypes.Text) name = "avals" + inherit_cache = True class _HStoreArrayFunction(sqlfunc.GenericFunction): type = ARRAY(sqltypes.Text) name = "hstore_to_array" + inherit_cache = True class _HStoreMatrixFunction(sqlfunc.GenericFunction): type = ARRAY(sqltypes.Text) name = "hstore_to_matrix" + inherit_cache = True # diff --git a/lib/sqlalchemy/dialects/sqlite/dml.py b/lib/sqlalchemy/dialects/sqlite/dml.py index a93e31beb..e4d8bd943 100644 --- a/lib/sqlalchemy/dialects/sqlite/dml.py +++ b/lib/sqlalchemy/dialects/sqlite/dml.py @@ -36,6 +36,7 @@ class Insert(StandardInsert): """ stringify_dialect = "sqlite" + inherit_cache = False @util.memoized_property def excluded(self): |
