Add parenthesis around subquery
See original GitHub issueIs your feature request related to a problem? Please describe.
I’m always frustrated when I want to add ()
around a subquery to use it as a where clause, the selected text gets deleted and replaced by (
Describe the solution you’d like
Imagine this scenario, you have a query to get the department id
:
select id from departments where name = 'IT'
Now, you want to know all the people working on this department so you go ahead and:
select * from employees where deparment_id in
Right here, you might want to select the first query with the cursor and press (
right, It would be awesome if after that the query can get wrapped by parenthesis, Currently, when you do that, the query is deleted and removed by the parenthesis.
Describe alternatives you’ve considered Same as above
Additional context The above-mentioned feature is part of PgAdmin. I only hate it after PgAdmin started to work only in the browser and then I switched to DBeaver and this seems a nice to have feature
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
thanks for the report.
Seems the feature is working but not in all cases![2020-11-23_17h13_04](https://user-images.githubusercontent.com/31996417/99972161-3cf2bd80-2daf-11eb-805a-183f4e864a25.gif)
Now I close this ticket, because it seems that problem solved - the wrapping in the brackets is supported by DBeaver.
Feel free to reopen the ticket if you appear additions.