SET @varname=1;
gives this exception
net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "@" "@"
Also referencing a variable within a statement. e.g.
SELECT @varname := @varname +1 as counter;
produces the following exception
net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: ":" ":"
Specifications