Cannot copy from primary result set when multiple result sets exist
See original GitHub issueDBeaver 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.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Not reproducible. Please reopen if you still encounter this issue