]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- Re-fixed this issue first released in 1.0.5 to fix psycopg2cffi
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 22 Jun 2015 15:35:02 +0000 (11:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 22 Jun 2015 15:35:02 +0000 (11:35 -0400)
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

doc/build/changelog/changelog_10.rst
lib/sqlalchemy/dialects/postgresql/psycopg2cffi.py

index efb5187163bbd5fe9fa530c2979feb77c8373048..363ae7f383f5a9c790d800c427d7d6522dd7f7f5 100644 (file)
 .. changelog::
     :version: 1.0.6
 
+    .. change::
+        :tags: bug, postgresql, pypy
+        :tickets: 3439
+
+        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.
+
     .. change::
         :tags: feature, postgresql
         :tickets: 3455
index f0fe23df3e88d7795eebfb08ae3ee8a5ba73383c..97f241d2e0d4cb9319dec5d8b4c7d99c65a076c1 100644 (file)
@@ -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)