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.

Cannot copy from primary result set when multiple result sets exist

See original GitHub issue

DBeaver 4.1.2 on Mac OSX Sierra

Use the following script to reproduce.

CREATE TABLE temp.alpha (row_id serial, 	val text);
CREATE TABLE temp.beta (row_id serial, val int);

INSERT INTO temp.alpha (val) VALUES ('A'), ('B'), ('C');
INSERT INTO temp.beta (val) VALUES (1), (2), (3);
	
-- highlight the two rows below and type Ctrl + Alt + X
-- to produce multiple result sets
SELECT * FROM temp.alpha;
SELECT * FROM temp.beta;

After executing the queries, attempt to copy (either standard or advanced copy) a few rows from the primary result set. Nothing gets copied into the clipboard.

Workaround: move to the 2nd result set and then back to the primary result set and copy to clipboard works.

Screen capture below shows issue.

aug-09-2017 14-49-12

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
budajeffcommented, Nov 6, 2017

I’ve encountered this issue on Windows 7 and DBeaver v4.2.2. In my case I have four results tabs open. Once copy stops working in one of them, I’m able to use the workaround (activate other results tabs in DBeaver) to get it to work again.

0reactions
serge-ridercommented, Aug 21, 2019

Not reproducible. Please reopen if you still encounter this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Retrieve data from stored procedure which has multiple result ...
No. · Surprisingly, you can access multiple result sets from an ADO.NET app using SqlDataReader as you mentioned - but you cannot access...
Read more >
sp_describe_first_result_set (Transact-SQL) - Microsoft Learn
Error because column types cannot be matched. The columns types differ in different possible first result sets. Copy.
Read more >
How to insert SP results in a multiple tables
INSERT...EXEC can output multiple result sets, but they need to have the same number of columns with the same datatypes in each position....
Read more >
SQL error messages and exceptions - Oracle Help Center
Generated column <columnName> dropped from table <tableName> . XX Attempt to return too many result sets. The constraint <constraintName> on table <tableName> ...
Read more >
Using the Execute SQL Task to Generate Result Sets
The second scenario uses a single Execute SQL task to retrieve a multi-row result set, also known as a full result set.
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