-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: Implementing RENAME USER #24413
Merged
Merged
*: Implementing RENAME USER #24413
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
ccc82aa
*: RENAME USER
mjonss b8cbec7
Reverted go.mod and go.sum
mjonss d320156
*: fix error reporting for RENAME USER when new user exists
mjonss 4bf8565
RENAME USER - wip issue with panic during atomic rename/swap
mjonss 6f161ba
Fixed panic due to missing TimeZone in ExecuteInternal.
mjonss 22017fd
RENAME USER fixed unused variable
mjonss 06be996
RENAME USER code cleanup
mjonss 807bc86
RENAME USER added VisitInfo unit test
mjonss 7e24101
RENAME USER, minor test case change
mjonss 14babbd
*: RENAME USER
mjonss 4c74304
Reverted go.mod and go.sum
mjonss cd74931
*: fix error reporting for RENAME USER when new user exists
mjonss f211e15
RENAME USER - wip issue with panic during atomic rename/swap
mjonss a8a2161
Fixed panic due to missing TimeZone in ExecuteInternal.
mjonss 690bea9
RENAME USER fixed unused variable
mjonss 5a4ccab
RENAME USER code cleanup
mjonss 0f99e3d
RENAME USER added VisitInfo unit test
mjonss f304980
RENAME USER, minor test case change
mjonss 807d6b2
Merge remote-tracking branch 'origin/mjonss/rename_user' into mjonss/…
mjonss d4f3a92
*: RENAME USER
mjonss 1e9b1a5
Reverted go.mod and go.sum
mjonss 9f152d1
*: fix error reporting for RENAME USER when new user exists
mjonss 771e3e0
RENAME USER - wip issue with panic during atomic rename/swap
mjonss b172de5
Fixed panic due to missing TimeZone in ExecuteInternal.
mjonss 6f52291
RENAME USER fixed unused variable
mjonss 0d01430
RENAME USER code cleanup
mjonss 6e7056d
RENAME USER added VisitInfo unit test
mjonss 03c31b1
RENAME USER, minor test case change
mjonss 4f3beed
*: RENAME USER
mjonss b1f5e51
Reverted go.mod and go.sum
mjonss 8fcd837
RENAME USER - wip issue with panic during atomic rename/swap
mjonss 5d671e7
Fixed panic due to missing TimeZone in ExecuteInternal.
mjonss 2367828
RENAME USER fixed unused variable
mjonss 8ec68c2
RENAME USER code cleanup
mjonss b3a36ac
RENAME USER, minor test case change
mjonss f4fe928
RENAME USER, test cleanup
mjonss e7315f7
Merge branch 'master' into mjonss/rename_user
mjonss 66115cf
Merge branch 'mjonss/rename_user' of github.com:mjonss/tidb into mjon…
mjonss 3f4c242
RENAME USER, removed non-needed comment
mjonss 407310a
RENAME USER reverted go.sum changes
mjonss fabdd2c
RENAME USER reverted go.mod changes
mjonss ad610c8
RENAME USER, removed a temporary fix for internal decoding issue
mjonss 2b76156
RENAME USER, non-logic change, adressed review comments
mjonss 739a1f4
Merge branch 'master' into mjonss/rename_user
mjonss fafa335
Merge branch 'master' into mjonss/rename_user
ti-chi-bot 7645dee
Merge branch 'master' into mjonss/rename_user
ti-chi-bot ab324bd
Merge branch 'master' into mjonss/rename_user
ti-chi-bot 8f6d99a
Merge branch 'master' into mjonss/rename_user
ti-chi-bot 1a23a18
Merge branch 'master' into mjonss/rename_user
ti-chi-bot d9f7e09
Merge branch 'master' into mjonss/rename_user
ti-chi-bot 3ea44b3
Merge branch 'master' into mjonss/rename_user
ti-chi-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 9 system tables to modify. Maybe you can put the params in an array and iterate the array to simplify the code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, and that is why I also added a comment about it.
Do you want me to add the refactoring of DROP USER and the new code in this PR or in a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer a separate PR.