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

[#1717] fix(jdbc-mysql): throw an exception if setting comment on MySQL database #1784

Merged
merged 4 commits into from
Jan 30, 2024

Conversation

FANNG1
Copy link
Contributor

@FANNG1 FANNG1 commented Jan 30, 2024

What changes were proposed in this pull request?

throw a exception when user. set comment on MySQL database

Why are the changes needed?

Fix: #1717 #1767

Does this PR introduce any user-facing change?

yes, if user set comment on MySQL database, will throw a exception.

How was this patch tested?

add UT

@jerryshao jerryshao changed the title [#1717] Not support set comment on MySQL database [#1717] fix(jdbc-mysql): throw an exception if setting comment on MySQL database Jan 30, 2024
String originComment = StringIdentifier.removeIdFromComment(comment);
if (StringUtils.isNotEmpty(originComment)) {
throw new UnsupportedOperationException(
"MySQL doesn't support set schema comment:" + originComment);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add a whitespace after ":"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@jerryshao jerryshao merged commit 9215c37 into apache:main Jan 30, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug report] couldn't get schema comment from mysql catalog
3 participants