@@ -547,12 +547,12 @@ type SystemVariable interface {
547547 // InitValue sets value without validation.
548548 // This is used for setting the initial values internally
549549 // using pre-defined variables or for test-purposes.
550- InitValue (ctx * Context , currVal , newVal any , global bool ) (SystemVarValue , error )
550+ InitValue (ctx * Context , val any , global bool ) (SystemVarValue , error )
551551 // SetValue sets the value of the sv of given scope, global or session
552552 // It validates setting value of correct scope,
553553 // converts the given value to appropriate value depending on the sv
554554 // and it returns the SystemVarValue with the updated value.
555- SetValue (ctx * Context , currVal , newVal any , global bool ) (SystemVarValue , error )
555+ SetValue (ctx * Context , val any , global bool ) (SystemVarValue , error )
556556 // IsReadOnly checks whether the variable is read only.
557557 // It returns false if variable can be set to a value.
558558 IsReadOnly () bool
@@ -626,8 +626,8 @@ func (m *MysqlSystemVariable) GetDefault() any {
626626}
627627
628628// InitValue implements SystemVariable.
629- func (m * MysqlSystemVariable ) InitValue (ctx * Context , currVal , newVal any , global bool ) (SystemVarValue , error ) {
630- convertedVal , _ , err := m .Type .Convert (ctx , newVal )
629+ func (m * MysqlSystemVariable ) InitValue (ctx * Context , val any , global bool ) (SystemVarValue , error ) {
630+ convertedVal , _ , err := m .Type .Convert (ctx , val )
631631 if err != nil {
632632 return SystemVarValue {}, err
633633 }
@@ -649,7 +649,7 @@ func (m *MysqlSystemVariable) InitValue(ctx *Context, currVal, newVal any, globa
649649}
650650
651651// SetValue implements SystemVariable.
652- func (m * MysqlSystemVariable ) SetValue (ctx * Context , currVal , newVal any , global bool ) (SystemVarValue , error ) {
652+ func (m * MysqlSystemVariable ) SetValue (ctx * Context , val any , global bool ) (SystemVarValue , error ) {
653653 if global && m .Scope .Type == SystemVariableScope_Session {
654654 return SystemVarValue {}, ErrSystemVariableSessionOnly .New (m .Name )
655655 }
@@ -659,7 +659,7 @@ func (m *MysqlSystemVariable) SetValue(ctx *Context, currVal, newVal any, global
659659 if ! m .Dynamic || m .ValueFunction != nil {
660660 return SystemVarValue {}, ErrSystemVariableReadOnly .New (m .Name )
661661 }
662- return m .InitValue (ctx , currVal , newVal , global )
662+ return m .InitValue (ctx , val , global )
663663}
664664
665665// IsReadOnly implements SystemVariable.
0 commit comments