-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
ddl: Check duplicate when adding column #37
Merged
Merged
Conversation
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 a duplicate column is not right.
LGTM |
c.Assert(alterStmt.Specs[0].String(), Not(Equals), "") | ||
// Insert a duplicate column will cause error |
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.
Inserting a duplicated column
Address comment
@siddontang PTAL |
LGTM |
shenli
added a commit
that referenced
this pull request
Sep 7, 2015
ddl: Check duplicate when adding column
spongedu
pushed a commit
to spongedu/tidb
that referenced
this pull request
Oct 26, 2019
YuJuncen
pushed a commit
to YuJuncen/tidb
that referenced
this pull request
Apr 23, 2021
YuJuncen
pushed a commit
to YuJuncen/tidb
that referenced
this pull request
Apr 23, 2021
* add time costs log
xhebox
pushed a commit
to xhebox/tidb
that referenced
this pull request
Sep 28, 2021
xhebox
pushed a commit
to xhebox/tidb
that referenced
this pull request
Oct 8, 2021
ti-chi-bot
pushed a commit
that referenced
this pull request
Oct 9, 2021
okJiang
pushed a commit
to okJiang/tidb
that referenced
this pull request
Oct 19, 2021
* go.sum: go insists on adding another entry :\ * tests: run multi-value insert using a single statement * tests: place the MySQL password into config file to suppress warning See: https://stackoverflow.com/q/20751352 * .travis.yml: disable testing outside of master and release-* branches * tests: fix test cases on MySQL 5.7 & 8 Co-authored-by: Ian <[email protected]>
Defined2014
pushed a commit
to Defined2014/tidb
that referenced
this pull request
Apr 11, 2022
iosmanthus
pushed a commit
to iosmanthus/tidb
that referenced
this pull request
Oct 31, 2022
Signed-off-by: Xiaoguang Sun <[email protected]> Signed-off-by: Xiaoguang Sun <[email protected]>
rleungx
pushed a commit
to rleungx/tidb
that referenced
this pull request
Feb 26, 2024
* init * audit: init first version of audit log * audit: support log global rotate * audit: update log keys * audit: more common notify implement * audit: add record id * audit: rename some names * audit: default use normal log path * audit: add server ip info * audit: do some refine * audit: Add some log keys * audit: update some item format * audit: add stmt demo * audit: support redact * audit: fix bug * audit: update filter * audit: update filter * audit: check user * audit: update * update * audit: update * audit: fix bug * aduit: update * audit: update * update * update * audit: add filter unit test * fmt * Add tests for `tidb_audit_enabled` and `tidb_audit_log` * Add tests for `tidb_audit_log_max_size` and `tidb_audit_log_max_lifetime` * Add tests for `tidb_audit_log_reserved_*` * TODO: TestAuditLogRedact * Fininsh `TestAuditLogRedact` * Update (pingcap#1) * fix typo (pingcap#2) * Add `TRANSACTION` * rename sysvar * audit_log_create_filter, audit_log_remove_filter * finish function call and table test * test privilege * finish test for sysvar * TODO: TestConnectionEvenClass * update * audit: fix lint for audit log (pingcap#1) * audit: fix UT failure caused by the change of redact log (pingcap#3) * audit: use `t.TempDir()` to make test stable (pingcap#4) * audit: fix test failed for 7.1 * Add `OWNERS` file (pingcap#35) Co-authored-by: Chao Wang <[email protected]> * audit: fix panic when logging sometime (pingcap#26) (pingcap#31) * test: fix unstable test TestAuditLogReservedDays (pingcap#8) * Format sysvar_test.go * audit: use `StatementContext` to generate redacted SQL (pingcap#9) * audit: fix panic when logging sometime (pingcap#26) * update * add owner * Update OWNERS --------- Co-authored-by: CbcWestwolf <[email protected]> Co-authored-by: wuhuizuo <[email protected]> * audit: fix panic sometimes when `create user` without password (pingcap#37) (pingcap#39) * This is an automated cherry-pick of pingcap#37 Signed-off-by: ti-chi-bot <[email protected]> * fix conflict --------- Signed-off-by: ti-chi-bot <[email protected]> Co-authored-by: 王超 <[email protected]> * extension/audit: introduce serverless audit log Signed-off-by: Wen Jiazhi <[email protected]> * update bazel config Signed-off-by: Wen Jiazhi <[email protected]> * support enable audit log when activate Signed-off-by: Wen Jiazhi <[email protected]> * add gwconnid to audit log Signed-off-by: Wen Jiazhi <[email protected]> * comment unstable test * update bazel * add log about activate request * diff audit log enabled * audit: fix memory leak for executeSQL (pingcap#44) (pingcap#45) * This is an automated cherry-pick of pingcap#44 Signed-off-by: ti-chi-bot <[email protected]> * Update util.go --------- Signed-off-by: ti-chi-bot <[email protected]> Co-authored-by: 王超 <[email protected]> * Update extension/serverless/OWNERS --------- Signed-off-by: ti-chi-bot <[email protected]> Signed-off-by: Wen Jiazhi <[email protected]> Co-authored-by: Chao Wang <[email protected]> Co-authored-by: cbcwestwolf <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]> Co-authored-by: wuhuizuo <[email protected]> Co-authored-by: zzm <[email protected]> Co-authored-by: Yuqing Bai <[email protected]>
guoshouyan
pushed a commit
to guoshouyan/tidb
that referenced
this pull request
Mar 5, 2024
…kup (pingcap#49154) (pingcap#50444) (pingcap#37) close pingcap#49152, close pingcap#49153 Co-authored-by: Ti Chi Robot <[email protected]>
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.
Add a duplicate column is not right.