]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove redundant deserializer assignment from asyncpg dialect (#13287)
authorHenry Cai <huacong.cai@gmail.com>
Sun, 17 May 2026 20:02:37 +0000 (13:02 -0700)
committerFederico Caselli <cfederico87@gmail.com>
Sun, 17 May 2026 20:03:32 +0000 (22:03 +0200)
(cherry picked from commit 120a967505efb4a50a9134bf45b8e88aebb9f483)

lib/sqlalchemy/dialects/postgresql/asyncpg.py

index d0b10550cd3ad2af10a9c0ac04b8827dc04fa963..f36b45aeade1c920c5ee27e24d83ab13022a753a 100644 (file)
@@ -1216,7 +1216,6 @@ class PGDialect_asyncpg(PGDialect):
         """
 
         asyncpg_connection = conn._connection
-        deserializer = self._json_deserializer or _py_json.loads
 
         def _jsonb_encoder(str_value):
             # \x01 is the prefix for jsonb used by PostgreSQL.