diff options
Diffstat (limited to 'lib/sqlalchemy/sql')
| -rw-r--r-- | lib/sqlalchemy/sql/sqltypes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sqlalchemy/sql/sqltypes.py b/lib/sqlalchemy/sql/sqltypes.py index d40fedc85..c5708940b 100644 --- a/lib/sqlalchemy/sql/sqltypes.py +++ b/lib/sqlalchemy/sql/sqltypes.py @@ -1894,13 +1894,13 @@ class JSON(Indexable, TypeEngine): Index operations return an expression object whose type defaults to :class:`.JSON` by default, so that further JSON-oriented instructions may be called upon the result type. Note that there are backend-specific - idiosyncracies here, including that the Postgresql database does not generally + idiosyncracies here, including that the PostgreSQL database does not generally compare a "json" to a "json" structure without type casts. These idiosyncracies - can be accommodated in a backend-neutral way by by making explicit use + can be accommodated in a backend-neutral way by making explicit use of the :func:`.cast` and :func:`.type_coerce` constructs. Comparison of specific index elements of a :class:`.JSON` object - to other objects work best if the **left hand side is CAST to a string** - and the **right hand side is rendered as a json string**; a future SQLAlchemy + to other objects works best if the **left hand side is CAST to a string** + and the **right hand side is rendered as a JSON string**; a future SQLAlchemy feature such as a generic "astext" modifier may simplify this at some point: * **Compare an element of a JSON structure to a string**:: |
