Skip to content

Initializing user variables and referencing them #732

@GrubbyHalo

Description

@GrubbyHalo

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

  • Version: 1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions