We have had a problem for a long time with multiline sql statements in V1 do not run when copy and pasted out into dbeaver
If you look at the text from a SQL statement in V1 copied into Notepad++ with the nonprintable characters shown,
you will notice that there are MISSING orange dots (aka space) in front of the CRLFs and times when i used multiple spaces, there is just one orange dot in front the text instead of each individual spaces. I delete those blank areas in notepad++ and put in regular spaces and then copy/paste it into dbeaver the query works