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

Remove dup check from throw_bounds_warning #3728

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ParadoxV5
Copy link
Contributor

  • The Jira issue number for this PR is: MDEV-11917

Description

MDEV-11917 merged a unified const char* overload for the two numeric throw_bounds_warning overloads. The my_error-on- MODE_STRICT_ALL_TABLES branch wasn’t removed from the two, though.
In result, the two checks if they should switch to this branch before calling the unified overload, but its first action is also to check if it should switch to a branch with the exact same (assembly) code.
This commit removes this leftover duplication.

Release Notes

N/A – This is a miscellaneous refactor with no output changes.

How can this PR be tested?

Run existing MTR tests

Basing the PR against the correct MariaDB version

  • This is a new feature or a refactoring, and the PR is based against the main branch.
  • This is a bug fix, and the PR is based against the earliest maintained branch in which the bug can be reproduced.

PR quality check

(I filed this tiny diff as a PR because of good habit… 😀)

  • I checked the CODING_STANDARDS.md file and my PR conforms to this where appropriate.
  • For any trivial modifications to the PR, I am ok with the reviewer making the changes themselves.

MDEV-11917 merged a unified `const char*` overload for the
two numeric `throw_bounds_warning` overloads. The `my_error`-on-
`MODE_STRICT_ALL_TABLES` branch wasn’t removed from the two, though.

This commit removes this leftover duplication.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant