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

feat(sql-review): new rule for checking no position in add column clause #11953

Merged
merged 3 commits into from May 16, 2024

Conversation

whhe
Copy link
Contributor

@whhe whhe commented May 10, 2024

Statements like alter table t add column a ... after b are offline ddl on some 4.x versions of OceanBase (MySQL mode) and online ddl for others, so there should be a warning for it to help the DBA filter it out.

For localization, I just add the rule to zh-CN.json and en-US.json, as other languages ​​are too difficult for me.

@d-bytebase
Copy link
Contributor

We are missing i18n for other locales.

@rebelice can help with the review, and thanks for the contribution!

@ecmadao
Copy link
Collaborator

ecmadao commented May 13, 2024

We are missing i18n for other locales.

i18n test is broken, fixed here #11973

@whhe
Copy link
Contributor Author

whhe commented May 14, 2024

We are missing i18n for other locales.

i18n test is broken, fixed here #11973

I rebased this branch and the frontend-tests failed. Is it due to missing i18n text?

@whhe
Copy link
Contributor Author

whhe commented May 15, 2024

Missing i18n text added. I used chatgpt for translation and I'm not sure if the text is correct.

Copy link
Contributor

@rebelice rebelice left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@rebelice rebelice merged commit 5434d2b into bytebase:main May 16, 2024
14 checks passed
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.

None yet

4 participants