Re: [pgAdmin4][RM3912] Unable to save data if user update primary keywith Json data type

Поиск
Список
Период
Сортировка
От Aditya Toshniwal
Тема Re: [pgAdmin4][RM3912] Unable to save data if user update primary keywith Json data type
Дата
Msg-id CAB2fNHCxkQd=bT+RkDq_Yd950LoCP2wenWb4PHkrXSMhXfOLbg@mail.gmail.com
обсуждение исходный текст
Ответ на [pgAdmin4][RM3912] Unable to save data if user update primary keywith Json data type  (Aditya Toshniwal <aditya.toshniwal14@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Andrey Klychkov
Дата:
Сообщение: PGAdmin 4 don't refresh server info after restarting
Следующее
От: Aditya Toshniwal
Дата:
Сообщение: [pgAdmin4][RM3912] Unable to save data if user update primary keywith Json data type