Обсуждение: [pgadmin-hackers] [pgAdmin4][PATCH] To fix the of issue in table node

Поиск
Список
Период
Сортировка

[pgadmin-hackers] [pgAdmin4][PATCH] To fix the of issue in table node

От
Murtuza Zabuawala
Дата:
Hi,

PFA minor patch to fix the issue in table node where it fails to create table when user provides numeric table name eg: 123.
RM#2284

Issue is when use json.loads() it converts string "123" into integer 123.

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Вложения

Re: [pgadmin-hackers] [pgAdmin4][PATCH] To fix the of issue in table node

От
Murtuza Zabuawala
Дата:
Hi,

Please find updated patch.

Updated logic to convert name only if name is of type int/long/float (Python2) or of type int/float (Python3) instead of blindly convert it to string.

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


On Tue, May 9, 2017 at 7:06 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
Hi,

PFA minor patch to fix the issue in table node where it fails to create table when user provides numeric table name eg: 123.
RM#2284

Issue is when use json.loads() it converts string "123" into integer 123.

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Вложения