]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Apply subtype repr logic to JSON/JSONB
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 22 Feb 2017 21:59:09 +0000 (16:59 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 22 Feb 2017 22:37:12 +0000 (17:37 -0500)
commit9fab143a9b6efbfd749c4f96a03eded173561e0a
tree3f33d84616dc24fd5168035087efe8077d99a4ac
parent3e5e3a8d3fa402e91671f689c590b8e57ca10ee8
Apply subtype repr logic to JSON/JSONB

Fixed bug where Postgresql JSON/JSONB types rendered on SQLAlchemy
1.1 would render the "astext_type" argument which defaults to
the ``Text()`` type without the module prefix, similarly to the
issue with ARRAY fixed in :ticket:`85`.

Also modifies the ARRAY approach from :ticket:`85` to be
regular expression based for safer targeting of the inner
repr() type.

Change-Id: I66d51301f4bf5b747b5e8da26a83cbff075d71b2
Fixes: #411
alembic/ddl/postgresql.py
docs/build/changelog.rst
tests/test_postgresql.py