Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sm-shaw opened this issue Feb 23, 2024 · 1 comment · Fixed by #670
Closed

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

sm-shaw opened this issue Feb 23, 2024 · 1 comment · Fixed by #670
Assignees
Labels
bug Something isn't working

Comments

@sm-shaw
Copy link
Contributor

sm-shaw commented Feb 23, 2024

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 #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 sm-shaw added the bug Something isn't working label Feb 23, 2024
@sm-shaw sm-shaw self-assigned this Feb 23, 2024
@sm-shaw sm-shaw linked a pull request Feb 23, 2024 that will close this issue
@sm-shaw
Copy link
Contributor Author

sm-shaw commented Feb 23, 2024

Had used a mix of mysqloptsfields and myoptsfields for variable name.
Fixed in #670 through 0b8dc68 by using same name throughout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant