Re: [pgAdmin4][RM3912] Unable to save data if user update primary keywith Json data type - Mailing list pgadmin-hackers

From Aditya Toshniwal
Subject Re: [pgAdmin4][RM3912] Unable to save data if user update primary keywith Json data type
Date
Msg-id CAB2fNHCxkQd=bT+RkDq_Yd950LoCP2wenWb4PHkrXSMhXfOLbg@mail.gmail.com
Whole thread Raw
In response to [pgAdmin4][RM3912] Unable to save data if user update primary keywith Json data type  (Aditya Toshniwal <aditya.toshniwal14@gmail.com>)
List pgadmin-hackers
Kindly ignore this mail. Apologies.

Thanks and Regards,
Aditya Toshniwal


On Tue, Feb 19, 2019 at 6:11 PM Aditya Toshniwal <aditya.toshniwal14@gmail.com> wrote:
Hi Hackers,

Attached is the patch to fix the issue where updating data (using view/edit) of primary key column where data type of that column is json/jsonb throws exception psycopg2.ProgrammingError: can't adapt type 'dict'.
The adapt function of psycopg2 does not support dict data type. Instead, http://initd.org/psycopg/docs/extras.html#json-adaptation can be used.

Kindly review.

Thanks and Regards,
Aditya Toshniwal

pgadmin-hackers by date:

Previous
From: Andrey Klychkov
Date:
Subject: PGAdmin 4 don't refresh server info after restarting
Next
From: Aditya Toshniwal
Date:
Subject: [pgAdmin4][RM3912] Unable to save data if user update primary keywith Json data type