TPC-Council / HammerDB

HammerDB Database Load Testing and Benchmarking Tool
http://www.hammerdb.com
GNU General Public License v3.0
542 stars 115 forks source link

Unmatched Background Error - can't read "myoptsfields": no such variable #673

Closed sm-shaw closed 4 months ago

sm-shaw commented 4 months ago

Guidance Bug reports are for when HammerDB is not behaving as expected. Bug reports should not be submitted for help in understanding database performance related questions. General questions on database performance or HammerDB usability should be submitted under Discussions.

Describe the bug Get the following when saving MySQL Transaction Counter options in the GUI

Unmatched Background Error - can't read "myoptsfields": no such variable
           while executing
       "subst $myoptsfields "
           invoked from within
       ".countopt.b1 invoke "
           invoked from within
       ".countopt.b1 instate !disabled { .countopt.b1 invoke } "
           invoked from within
       ".countopt.b1 instate pressed { .countopt.b1 state !pressed; .countopt.b1 instate !disabled { .countopt.b1 invoke } } "
           (command bound to event)
       Unmatched Background Error - can't unset "myoptsfields": no such variable
           while executing
       "unset myoptsfields"
           invoked from within
       ".countopt.b2 invoke "
           invoked from within
       ".countopt.b2 instate !disabled { .countopt.b2 invoke } "
           invoked from within
       ".countopt.b2 instate pressed { .countopt.b2 state !pressed; .countopt.b2 instate !disabled { .countopt.b2 invoke } } "
           (command bound to event)

To Reproduce Use the GUI and set MySQL transaction counter options

Expected behavior Should not error when saving

Additional context Found bug when updating PR https://github.com/TPC-Council/HammerDB/pull/670 so change has been included in this PR

Workaround Set desired parameters in the MySQL build or driver options (they set the same variables) and then start transaction counter running and it will use these variables.

sm-shaw commented 4 months ago

Had used a mix of mysqloptsfields and myoptsfields for variable name. Fixed in #670 through https://github.com/TPC-Council/HammerDB/pull/670/commits/0b8dc68d51764c1149995c23884a10f76d6feffe by using same name throughout.