diff options
author | Takashi Kajinami <tkajinam@redhat.com> | 2022-11-01 15:27:24 +0900 |
---|---|---|
committer | Takashi Kajinami <tkajinam@redhat.com> | 2022-11-01 15:27:24 +0900 |
commit | ddbf9db52e7208a8e79b8656e4875251fe56be92 (patch) | |
tree | f8a16235118f3d678dab920d4b15613efabe06ab | |
parent | f71308319ad528b1a009c27f64b96e452aa144e4 (diff) | |
download | heat-ddbf9db52e7208a8e79b8656e4875251fe56be92.tar.gz |
Set cache_ok to avoid further SAWarning
This change fixes the one remaining usage without the flag which was
missed by the previous attempt[1].
[1] 14d2d859ef4eb3d21bf6e419a77c2f3185d5cf77
Change-Id: Ic0b34b11d669851e47cae670f5299f934f396257
-rw-r--r-- | heat/db/sqlalchemy/types.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/heat/db/sqlalchemy/types.py b/heat/db/sqlalchemy/types.py index 4d4a213e5..d454024c6 100644 --- a/heat/db/sqlalchemy/types.py +++ b/heat/db/sqlalchemy/types.py @@ -34,6 +34,8 @@ class LongText(types.TypeDecorator): class Json(LongText): + cache_ok = True + def process_bind_param(self, value, dialect): return dumps(value) |