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

ddl: disallow dropping auto_increment column attribute #12107

Merged
merged 11 commits into from
Sep 10, 2019

Conversation

tangenta
Copy link
Contributor

What problem does this PR solve?

Disallow dropping auto_increment column attribute

What is changed and how it works?

Tweak the check in getModifiableColumnJob.

Check List

Tests

  • Unit test
  • Integration test

Code changes

Side effects

Related changes

Release note

@codecov
Copy link

codecov bot commented Sep 10, 2019

Codecov Report

Merging #12107 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master    #12107   +/-   ##
=========================================
  Coverage   81.322%   81.322%           
=========================================
  Files          451       451           
  Lines        96606     96606           
=========================================
  Hits         78562     78562           
  Misses       12410     12410           
  Partials      5634      5634

sessionctx/variable/session.go Outdated Show resolved Hide resolved
ddl/ddl_api.go Outdated Show resolved Hide resolved
Copy link
Contributor

@crazycs520 crazycs520 left a comment

Choose a reason for hiding this comment

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

Please address comment.
Rest LGTM

@tangenta
Copy link
Contributor Author

/run-all-tests

Copy link
Member

@bb7133 bb7133 left a comment

Choose a reason for hiding this comment

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

LGTM

@bb7133 bb7133 added the status/LGT2 Indicates that a PR has LGTM 2. label Sep 10, 2019
Copy link
Contributor

@winkyao winkyao left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/sql-infra SIG: SQL Infra status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants