dbeaver / dbeaver/cloudbeaver

Need a "Blank line is statement delimiter"="None" in SQL Editor Preferences

Open
#4,449 1 comment 0 reactions 0 assignees View on GitHub
xf:sql editor xf:ui/uix
Dominant language
TypeScript
Stars
5.1k
Forks
563
Avg merge
3d 9h
Merged PRs (30d)
59

Description

**Is your feature request related to a problem? Please describe.**
Yes. sometimes we copy a sql statement from some source (e.g. AI) and paste in the SQL Editor.
This statement may contain newlines.
If I execute such a statement, the execution my be wrong because the statement is only executed until the newline character.
e.g.:
"delete from table_a where
condition A

and condition_B;"

- in the case above, the statement that will be executed is:
"delete from table_a where
condition A"

**Describe the solution you'd like**
In DBeaver desktop, there's a setting called "Blank line is statement delimiter", which you can set to "Never".
We need this also on CloudBeaver please.

**Describe alternatives you've considered**
We have instructed everyone to make sure these 2 settings are selected:
- "Request dangerous queries confirmation"
- "Request DROP queries confirmation"
However, these won't cover the case above.

**Additional context**

Image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating CloudBeaver's SQL Editor Preferences and the statement delimiter handling, then compare them with DBeaver's "Blank line is statement delimiter" setting. Done means users can choose Never so pasted SQL containing blank lines executes as one statement, while the existing dangerous-query confirmations remain available.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql, typescript
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.