summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r--lib/sqlalchemy/sql/sqltypes.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/sqltypes.py b/lib/sqlalchemy/sql/sqltypes.py
index 8798f5ad7..0d3944552 100644
--- a/lib/sqlalchemy/sql/sqltypes.py
+++ b/lib/sqlalchemy/sql/sqltypes.py
@@ -2214,8 +2214,13 @@ class JSON(Indexable, TypeEngine):
@property
def should_evaluate_none(self):
+ """Alias of :attr:`.JSON.none_as_null`"""
return not self.none_as_null
+ @should_evaluate_none.setter
+ def should_evaluate_none(self, value):
+ self.none_as_null = not value
+
@util.memoized_property
def _str_impl(self):
return String(_expect_unicode=True)