Dealing with table name case issues#13893
Closed
xinxingi wants to merge 8 commits intoapache:devfrom
xinxingi:dev
Closed
Dealing with table name case issues#13893xinxingi wants to merge 8 commits intoapache:devfrom xinxingi:dev
xinxingi wants to merge 8 commits intoapache:devfrom
xinxingi:dev
Conversation
-- Dealing with table name case issues
drop PROCEDURE if EXISTS drop_qrtz_job_details_capitalization;
delimiter d//
CREATE PROCEDURE drop_qrtz_job_details_capitalization()
BEGIN
IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.STATISTICS
WHERE TABLE_NAME='qrtz_job_details'
AND TABLE_SCHEMA=(SELECT DATABASE())
)
THEN
RENAME TABLE `qrtz_job_details` TO `QRTZ_JOB_DETAILS`;
END IF;
END;
d//
delimiter ;
CALL drop_qrtz_job_details_capitalization;
DROP PROCEDURE drop_qrtz_job_details_capitalization;
Handle the case of the table name, if the problem is not handled, the ddl statement may fail
Codecov Report
@@ Coverage Diff @@
## dev #13893 +/- ##
============================================
- Coverage 38.91% 38.86% -0.06%
+ Complexity 4465 4453 -12
============================================
Files 1158 1158
Lines 42424 42424
Branches 4772 4776 +4
============================================
- Hits 16510 16487 -23
- Misses 24097 24121 +24
+ Partials 1817 1816 -1 see 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Kudos, SonarCloud Quality Gate passed! |
Contributor
Author
Upgrade script compatibility issue handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.









Purpose of the pull request
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md