Hello
Is there a way to prevent a line break for the "and" in the "between" function? Otherwise, the AND should always be wrapped.
Hello
Is there a way to prevent a line break for the "and" in the "between" function? Otherwise, the AND should always be wrapped.
Hi Benjamin. Thanks for your message. Could you please post an example. You are right there should not be a linebreak.
Regards
Guido
@benjamin-moeller Hi, I am back from a weekend trip and tried to reproduce this behavior but was not able to add a linebreak before the AND keyword in the BETWEEN clause.
Did you maybe change the "page width" and by coincidence the AND was put on a new line because the max line length has been reached?
Regards
Guido
Hi Guido
i was able to reproduce it with an easy example. See the between in the second case statement.:
WITH base AS
(
SELECT
1 AS colum_1
, 2 AS column_2
, 3 AS column_3
FROM test
)
SELECT
column_1
,
CASE
WHEN column_1 = 1
THEN
CASE
WHEN column_1 > column_2
THEN 3
ELSE 5
END
WHEN coloum_1 BETWEEN 2
AND 3
THEN 4
ELSE 4
END
FROM base
WHERE
column_1 = 2
AND column_1 BETWEEN 0 AND 1
Hi Guido
super! That was fast!
Yes I am using the N++ plugin and the dbeaver plugin
Thanks
Ben