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

From: Aditya Toshniwal <aditya(dot)toshniwal14(at)gmail(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4][RM3912] Unable to save data if user update primary key with Json data type
Date: 2019-02-20 04:22:29
Message-ID: CAB2fNHCxkQd=bT+RkDq_Yd950LoCP2wenWb4PHkrXSMhXfOLbg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Kindly ignore this mail. Apologies.

Thanks and Regards,
Aditya Toshniwal

On Tue, Feb 19, 2019 at 6:11 PM Aditya Toshniwal <
aditya(dot)toshniwal14(at)gmail(dot)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
>

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2019-02-20 04:22:35 [pgAdmin4][RM3912] Unable to save data if user update primary key with Json data type
Previous Message Andrey Klychkov 2019-02-19 20:43:50 PGAdmin 4 don't refresh server info after restarting