Re: Editing integer array cell clears data

From: Janus <janus(dot)e(at)gmail(dot)com>
To: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>
Cc: "pgadmin-support lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: Re: Editing integer array cell clears data
Date: 2019-01-15 13:53:37
Message-ID: CAJTmWxhu6eKR6JTWYMJnMg7BruMxmMbV5du+RR56P2G6QLqZXw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Khushboo, that is exatcly what I do, but the content of the cell is
cleared/emptied when editing a cell containing integer array data. The
click & edit method works fine for other data types I have tried to edit.

I have a table defined as below. The answer_values column contains {1,2},
but when editing this cell, no popup is displayed as when editing
answer_texts values. Instead, the edit view for answer_values is looking
like the edit view for the stratification_id column, but with the cell
content removed. When focus is moved to another cell, and no editing had
occured, the display value of the answer_values is [null], i.e., the cell
is empty.

---

CREATE TABLE public.stratification
(
stratification_id integer NOT NULL,
question_text character varying COLLATE pg_catalog."default" NOT NULL,
answer_texts character varying[] COLLATE pg_catalog."default" NOT NULL,
answer_values integer[] NOT NULL,
study integer NOT NULL,
CONSTRAINT stratification_id_pk PRIMARY KEY (stratification_id),
CONSTRAINT study_fk FOREIGN KEY (study)
REFERENCES public.study (study_id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE NO ACTION
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;

ALTER TABLE public.stratification
OWNER to postgres;

On Tue, 15 Jan 2019 at 12:22, Khushboo Vashi <
khushboo(dot)vashi(at)enterprisedb(dot)com> wrote:

>
>
> On Tue, Jan 15, 2019 at 4:44 PM Janus <janus(dot)e(at)gmail(dot)com> wrote:
>
>> Windows 10, pgAdmin 4.1. select version() = PostgreSQL 11.1 on
>> x86_64-pc-mingw64, compiled by gcc.exe (Rev5, Built by MSYS2 project)
>> 4.9.2, 64-bit
>>
>> I have a table with a column defined with integer[] data type. When
>> attempting to edit this using the pgAdmin GUI (double-click cell in View
>> Data), the content of the cell (e.g {1,2}) is cleared. When exiting the
>> cell, the empty cell is now rendered with the [null] text.
>>
> You can edit the data by clicking on the cell itself. After editing please
> remove the focus from that cell (by clicking outside of the grid) and then
> save the changes. I hope this will be helpful for you.
>
>> I was expecting to be able to edit the data directly like when double
>> clicking a cell defined with character varying[] data type.
>>
>

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Diego Augusto Molina 2019-01-15 20:42:17 Docker image not running on IPv6-disabled systems
Previous Message Khushboo Vashi 2019-01-15 11:22:30 Re: Editing integer array cell clears data