[pgAdmin4][RM3912] Unable to save data if user update primary keywith Json data type
[pgAdmin4][RM3912] Unable to save data if user update primary keywith Json data type
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
Aditya Toshniwal
Re: [pgAdmin4][RM3912] Unable to save data if user update primary keywith Json data type
От:
Aditya Toshniwal <aditya.toshniwal14@gmail.com>
Дата:
Kindly ignore this mail. Apologies.
Thanks and Regards,
Aditya Toshniwal
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