Re: [pgAdmin][RM5210] pgAdmin4 silently truncates text larger thanunderlying field size

Поиск
Список
Период
Сортировка
От Khushboo Vashi
Тема Re: [pgAdmin][RM5210] pgAdmin4 silently truncates text larger thanunderlying field size
Дата
Msg-id CAFOhELdUp98fKpMDr2NF4US_j0nNTN5=Rnz4LY0rcUmFVzkZpw@mail.gmail.com
обсуждение исходный текст
Ответ на [pgAdmin][RM5210] pgAdmin4 silently truncates text larger thanunderlying field size  (navnath gadakh <navnath.gadakh@enterprisedb.com>)
Ответы Re: [pgAdmin][RM5210] pgAdmin4 silently truncates text larger thanunderlying field size
Список pgadmin-hackers
Hi Navnath,

You have compared the column's internal size with the length of the value given by the user.
For example, column having integer would have internal size 4 and if I give the value 12121 which is the correct input for the field will fail here because as per your logic column internal size (4) < len(value) (5).

I think this implementation is not correct here.

Thanks,
Khushboo



On Tue, Apr 14, 2020 at 4:33 PM navnath gadakh <navnath.gadakh@enterprisedb.com> wrote:
Hello Hackers,
Please find the attached patch for below fixes:

- Added validation for table row data that should not be larger than the field size.
- Rearrange the existing functions to add validation.
- Added test cases.

Regards,
Navnath Gadakh

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Neel Patel
Дата:
Сообщение: Re: RM4292 - Dark mode support for Windows/macOS
Следующее
От: Ganesh Jaybhay
Дата:
Сообщение: [pgAdmin][4709] Invalid FTS configuration token dictionaries