Skip to content

[Enhancement] set back all session variables to default value #20643

@morrySnow

Description

@morrySnow

Search before asking

  • I had searched in the issues and found no similar issues.

Description

we will set some global variables for test or sometimes
after test, we want to recovery all variables to default value
but it is not easy to do this, because we should check all variables manually

Solution

provide new statement

UNSET [SESSION] VARIABLE ${variable_name};
UNSET [SESSION] VARIABLE ALL;

to set variable to default value.

forthemore, we could reorder weather a variable is default value. If it does,
we could update it to new default value when the default value changed.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions