question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding values to arrays in UI not working

See original GitHub issue

System information:

  • Operating system (distribution) and version: Windows 10
  • DBeaver version: 7.2.2.202010041557
  • Additional extensions: No

Connection specification:

  • Database name and version: Postgres (tested on 9.6 and 11)
  • Driver name: PostgreSQL JDBC Driver
  • Do you use tunnels or proxies (SSH, SOCKS, etc)? : No

Describe the problem you’re observing:

When editing a cell of type array (tested with uuid[] and text[]), in the editor right clicking and choosing “Add element”, will add an element with value NULL. This NULL value is not editable (it used to be). This means that it is not possible to add new actual values.

Steps to reproduce, if exist:

CREATE TABLE test (
	id uuid,
	testuuid uuid[],
	testtext text[],
        PRIMARY KEY (id)
);
INSERT INTO test
	VALUES 
		('40340e1a-49a4-46d7-9c67-43d96e778f4a', '{"fc201ae4-5ba3-4fe2-b8be-391822bfda56"}', '{"Test"}');
SELECT * FROM test;

Mark one of the array cells and shift+enter to open editor. Then right click to choose “Add element”. image

This will add a new element with the value NULL image

It used to be possible to double click the value in order to edit it and insert the actual value. This does not seem possible now, hence making is impossible to add actual values through the UI.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
nheilbuthcommented, Oct 26, 2020

No still not working on 7.2.3.202010191702

2reactions
nheilbuthcommented, Nov 5, 2020

Ah yes. Seems to work if I press enter. My bad. All issues seems to have been fixed in the latest version

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add items into an array - Help - UiPath Forum
As a workaround you can convert an array to list, add as many items as you need and then eventually convert it back...
Read more >
mapping an array onto the UI is not displaying elements right
1 Answer 1 ... The problem is that you forgot key attribute on mapping an array and rendering the same in UI. Without...
Read more >
Add Data into an Array in a State Object | Pluralsight
A state object can store arrays that can be updated with a response from an API or users.
Read more >
Arrays - Learn web development | MDN
In the final article of this module, we'll look at arrays — a neat way of storing a list of data items under...
Read more >
5. Working with Arrays and Loops - JavaScript Cookbook [Book]
In addition, array elements can be set using the same index, which automatically creates ... Problem. You want to easily access all elements...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found