Why does Base fail to recognise DECLARE statement?

I am using the SQL View to create my query and for some reason I do not get syntax highlighting.

My Query is:

DECLARE @var
SET @var = 10
SELECT @var

I get a syntax error.

This is, AFAIK, legal SQL code so there should be no problems.
Can you tell me what I am doing wrong?

As I am not an expert, I am unable to help you, but if you are quite sure, that you did it right, please file a bug: https://www.libreoffice.org/get-help/bug/
Please put me (“reisi007 gmail”) in CC