[pgAdmin4][Patch]: Fix RM1790 - [Web] Support setting a field's value to "null" - Mailing list pgadmin-hackers

From Surinder Kumar
Subject [pgAdmin4][Patch]: Fix RM1790 - [Web] Support setting a field's value to "null"
Date
Msg-id CAM5-9D9b6TjpQtJY1N==7UUCfi0bub47KCkyL3WSJES0Q3cMLA@mail.gmail.com
Whole thread Raw
Responses Re: [pgAdmin4][Patch]: Fix RM1790 - [Web] Support setting a field's value to "null"  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
Hi

Issue:
- On viewing table data, If we edit a column and set value of column(type: text) to "null", It always takes it as empty string. It doesn't honour null values.

Solution:
- Take a flag "is_null" for columns with data type 'text', then on GUI, whilst user edits a text field, an additional option with checkbox(is_null ?) is given to take null values. If checkbox is checked, on JS side we check "is_null" flag and pass field value to null if selected.

Please find patch and review.


Thanks,
Surinder Kumar
Attachment

pgadmin-hackers by date:

Previous
From: Khushboo Vashi
Date:
Subject: Re: [pgAdmin4][Patch]: RM #1801 : Properly handle databases with datallowconn == false
Next
From: Андрей Брюхов
Date:
Subject: pgadmin4. utf8 bug report