]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Improve Asyncpg json handling
authorFederico Caselli <cfederico87@gmail.com>
Mon, 21 Sep 2020 17:59:00 +0000 (19:59 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 23 Sep 2020 19:29:56 +0000 (21:29 +0200)
commit219c717e2357439e719464add9f86dc2f40ae667
treedc2290870ae8bc31fa8ea1a595130c39bb328359
parent73ab000007bd25ac86ca2081868615c6c4820531
Improve Asyncpg json handling

Set default type codec for ``json`` and ``jsonb`` types when using
the asyncpg driver. By default asyncpg will not decode them and return
strings instead.

Fixes: #5584
Change-Id: I41348eff8096ccf87b952d7e797c0694c6c4b5c4
lib/sqlalchemy/dialects/postgresql/asyncpg.py
test/dialect/postgresql/test_types.py