Skip to content

Dotted notation should be supported in UserVariable. #608

Description

@wheredevel

Query of interest:

select @@session.tx_read_only

Actual Behavior

Error parsing statement `select @@session.tx_read_only`: 
Encountered unexpected token: "." "."
    at line 1, column 17.
 
Was expecting one of:
 
    "&"
    ","
    "::"
    ";"
    "<<"
    ">>"
 ...

Expected Behavior

As in the example query (select @@session.tx_read_only) one can use a UserVariable with dotted notation. See: https://dev.mysql.com/doc/refman/5.7/en/set-variable.html.

Steps to Reproduce the Problem

Parse

select @@session.tx_read_only

Specifications

  • Version:
  • Platform:
  • Subsystem:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions