diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2023-04-12 23:41:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2023-04-12 23:41:19 +0000 |
| commit | b066c45dc491716a4e34bdeb9a9726bcbc136fb5 (patch) | |
| tree | ae40a051b41f73d3587cb1f2785c85e810e89dc7 /lib/sqlalchemy/dialects/postgresql/json.py | |
| parent | 53be3fc70a44d34fda1ffddcf9d67473d3de50b4 (diff) | |
| parent | ee7e49964fcf13ed0f5a3541b81f00302a9db29a (diff) | |
| download | sqlalchemy-b066c45dc491716a4e34bdeb9a9726bcbc136fb5.tar.gz | |
Merge "Remove old versionadded and versionchanged" into main
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/json.py')
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/json.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/json.py b/lib/sqlalchemy/dialects/postgresql/json.py index 9c2936006..232f05804 100644 --- a/lib/sqlalchemy/dialects/postgresql/json.py +++ b/lib/sqlalchemy/dialects/postgresql/json.py @@ -183,12 +183,6 @@ class JSON(sqltypes.JSON): data_table.c.data[('key_1', 'key_2', 5, ..., 'key_n')].astext == 'some value' - .. versionchanged:: 1.1 The :meth:`_expression.ColumnElement.cast` - operator on - JSON objects now requires that the :attr:`.JSON.Comparator.astext` - modifier be called explicitly, if the cast works only from a textual - string. - Index operations return an expression object whose type defaults to :class:`_types.JSON` by default, so that further JSON-oriented instructions @@ -213,9 +207,6 @@ class JSON(sqltypes.JSON): :class:`_postgresql.JSONB` - .. versionchanged:: 1.1 :class:`_postgresql.JSON` is now a PostgreSQL- - specific specialization of the new :class:`_types.JSON` type. - """ # noqa astext_type = sqltypes.Text() @@ -231,9 +222,6 @@ class JSON(sqltypes.JSON): from sqlalchemy import null conn.execute(table.insert(), data=null()) - .. versionchanged:: 0.9.8 - Added ``none_as_null``, and :func:`.null` - is now supported in order to persist a NULL value. - .. seealso:: :attr:`_types.JSON.NULL` @@ -242,8 +230,6 @@ class JSON(sqltypes.JSON): :attr:`.JSON.Comparator.astext` accessor on indexed attributes. Defaults to :class:`_types.Text`. - .. versionadded:: 1.1 - """ super().__init__(none_as_null=none_as_null) if astext_type is not None: @@ -323,8 +309,6 @@ class JSONB(JSON): in the same way that ``psycopg2.extras.register_default_json`` is used to register these handlers with the json type. - .. versionadded:: 0.9.7 - .. seealso:: :class:`_types.JSON` |
