Skip to content

Complete correctness for system variables #7195

@spongedu

Description

@spongedu

In #7117 we add a framework to validate input when set system variables, but not all system variables are checked in that pr because there are too much of them. We should complete these checks step by step.

What to do:

  1. Find out the specific limitation in MySQL system variable reference
  2. Add related validation in method ValidateSetSystemVar in sessionctx/variable/varsutil.go
  3. Add related tests in executor/set_test.go

Notes:

  1. Details about MySQL system variables can be found here
  2. executor,sessionctx: Add correctness for more system variables #7196 be be referd as an example.
  3. System variables with ScopeNone scope need not be checked because they can't be changed dynamically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions