diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-01-31 19:04:54 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-01-31 19:04:54 -0500 |
commit | bf70f556b382dc376783efbcb598e0fab71ee235 (patch) | |
tree | b2eb21efee6bf90b693b4703e4a3890e9dcfb912 /README.unittests.rst | |
parent | a523163c4140e5a912540a0092206b99ddf9796d (diff) | |
download | sqlalchemy-bf70f556b382dc376783efbcb598e0fab71ee235.tar.gz |
- Added support for the :class:`postgresql.JSONB` datatype when
using psycopg2 2.5.4 or greater, which features native conversion
of JSONB data so that SQLAlchemy's converters must be disabled;
additionally, the newly added psycopg2 extension
``extras.register_default_jsonb`` is used to establish a JSON
deserializer passed to the dialect via the ``json_deserializer``
argument. Also repaired the Postgresql integration tests which
weren't actually round-tripping the JSONB type as opposed to the
JSON type. Pull request courtesy Mateusz Susik.
- Repaired the use of the "array_oid" flag when registering the
HSTORE type with older psycopg2 versions < 2.4.3, which does not
support this flag, as well as use of the native json serializer
hook "register_default_json" with user-defined ``json_deserializer``
on psycopg2 versions < 2.5, which does not include native json.
Diffstat (limited to 'README.unittests.rst')
-rw-r--r-- | README.unittests.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/README.unittests.rst b/README.unittests.rst index 7ca229df6..5aeba51f6 100644 --- a/README.unittests.rst +++ b/README.unittests.rst @@ -198,6 +198,18 @@ expect them to be present will fail. Additional steps specific to individual databases are as follows:: + POSTGRESQL: To enable unicode testing with JSONB, create the + database with UTF8 encoding:: + + postgres=# create database test with owner=scott encoding='utf8' template=template0; + + To include tests for HSTORE, create the HSTORE type engine:: + + postgres=# \c test; + You are now connected to database "test" as user "postgresql". + test=# create extension hstore; + CREATE EXTENSION + MYSQL: Default storage engine should be "MyISAM". Tests that require "InnoDB" as the engine will specify this explicitly. |