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

Fix not quote db name in file data ddl #961

Merged
merged 3 commits into from
May 12, 2020
Merged

Fix not quote db name in file data ddl #961

merged 3 commits into from
May 12, 2020

Conversation

july2993
Copy link
Contributor

@july2993 july2993 commented May 6, 2020

What problem does this PR solve?

fix #955
db name is not quoted when we format the DDL, so when it contains some reserved characters,we will fail to parse the DDL.

What is changed and how it works?

quote the db name when formatting the DDL.

Check List

Tests

  • Unit test
  • Integration test

Code changes

Side effects

Related changes

  • Need to cherry-pick to the release branch
  • Need to be included in the release note

Release note

  • Fix reparo fails to parse DDL when the database name contains the reserved characters.

Copy link
Contributor

@WangXiangUSTC WangXiangUSTC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sre-bot
Copy link

sre-bot commented May 12, 2020

@july2993
Copy link
Contributor Author

/rebuild

@sre-bot
Copy link

sre-bot commented May 12, 2020

@july2993
Copy link
Contributor Author

/rebuild

@sre-bot
Copy link

sre-bot commented May 12, 2020

@july2993
Copy link
Contributor Author

/rebuild

Copy link
Contributor

@zier-one zier-one left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sre-bot
Copy link

sre-bot commented May 12, 2020

Your auto merge job has been accepted, waiting for:

  • 962

@sre-bot
Copy link

sre-bot commented May 12, 2020

/run-all-tests

@sre-bot
Copy link

sre-bot commented May 12, 2020

cherry pick to release-3.0 in PR #967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

binlog ddl parse error
4 participants