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

From: Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin4][Patch]: Fix RM1790 - [Web] Support setting a field's value to "null"
Date: 2016-12-02 12:50:00
Message-ID: CAM5-9D9b6TjpQtJY1N==7UUCfi0bub47KCkyL3WSJES0Q3cMLA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
RM1790.patch application/octet-stream 5.4 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Андрей Брюхов 2016-12-02 15:07:31 pgadmin4. utf8 bug report
Previous Message Khushboo Vashi 2016-12-02 11:02:28 Re: [pgAdmin4][Patch]: RM #1801 : Properly handle databases with datallowconn == false