Skip to content
Advertisement

Why concatenation does not work in Dbeaver?

Using Dbeaver, the || concatenation does not work. Had to use CONCAT() instead. Got output error message: Truncated incorrect DOUBLE value. Anyone else had this issue?

Skill level: Beginner
Editor: Dbeaver
OS: Windows 7

Advertisement

Answer

MariaDB expects the PIPES_AS_CONCAT to be set with the sql_mode to use || as a concat operator.

One can check what is set for sql_mode by doing:

To which output similar to the following may appear:

Note that the PIPES_AS_CONCAT is not listed, so this can be appended by doing:

Then recheck the sql_mode to see:

More information about PIPES_AS_CONCAT can be found here.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement