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

*: Add a variable to skip constraint check in session. #2031

Merged
merged 5 commits into from
Nov 18, 2016

Conversation

shenli
Copy link
Member

@shenli shenli commented Nov 18, 2016

When import data from mysqldump/mydumper. We could skip constraint check.
Test cases will be added in the next commit.

func (s *SessionVars) setSkipConstraintCheck(sVal string) {
if sVal == "1" {
s.SkipConstraintCheck = true
}
Copy link
Member

Choose a reason for hiding this comment

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

else set false.

@shenli shenli changed the title [DNM]*: Add a variable to skip constraint check in session. *: Add a variable to skip constraint check in session. Nov 18, 2016
@shenli
Copy link
Member Author

shenli commented Nov 18, 2016

@coocood PTAL

@coocood
Copy link
Member

coocood commented Nov 18, 2016

LGTM

1 similar comment
@hanfei1991
Copy link
Member

LGTM

@shenli shenli merged commit 5f457a2 into master Nov 18, 2016
@shenli shenli deleted the shenli/skip-check branch November 18, 2016 14:54
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.

3 participants