From 24f8ab2bc360c1e0837ce7c5392839f87b57e916 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 22 Jun 2015 11:35:02 -0400 Subject: - Re-fixed this issue first released in 1.0.5 to fix psycopg2cffi JSONB support once again, as they suddenly switched on unconditional decoding of JSONB types in version 2.7.1. Version detection now specifies 2.7.1 as where we should expect the DBAPI to do json encoding for us. fixes #3439 --- lib/sqlalchemy/dialects/postgresql/psycopg2cffi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2cffi.py') diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2cffi.py b/lib/sqlalchemy/dialects/postgresql/psycopg2cffi.py index f0fe23df3..97f241d2e 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2cffi.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2cffi.py @@ -37,7 +37,7 @@ class PGDialect_psycopg2cffi(PGDialect_psycopg2): FEATURE_VERSION_MAP = dict( native_json=(2, 4, 4), - native_jsonb=(99, 99, 99), + native_jsonb=(2, 7, 1), sane_multi_rowcount=(2, 4, 4), array_oid=(2, 4, 4), hstore_adapter=(2, 4, 4) -- cgit v1.2.1