Merge "Set cache_ok to avoid SAWarning"

This commit is contained in:
Zuul 2022-07-18 14:11:04 +00:00 committed by Gerrit Code Review
commit bb97ed77ae
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ loads = jsonutils.loads
class LongText(types.TypeDecorator):
impl = types.Text
cache_ok = True
def load_dialect_impl(self, dialect):
if dialect.name == 'mysql':
@ -45,6 +46,7 @@ class Json(LongText):
class List(types.TypeDecorator):
impl = types.Text
cache_ok = True
def load_dialect_impl(self, dialect):
if dialect.name == 'mysql':