From ddbf9db52e7208a8e79b8656e4875251fe56be92 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 1 Nov 2022 15:27:24 +0900 Subject: [PATCH] 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 --- heat/db/sqlalchemy/types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/heat/db/sqlalchemy/types.py b/heat/db/sqlalchemy/types.py index 4d4a213e58..d454024c6b 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)