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

load data : fix load data rowcount should added first before call colsToRow() #11980

Merged
merged 2 commits into from
Sep 2, 2019

Conversation

AilinKid
Copy link
Contributor

@AilinKid AilinKid commented Sep 2, 2019

What problem does this PR solve?

Fix a bug in load data when row with auto increment column.
I find the server-test is under the wrong logic when I do my last_insert_id job.
So I take this PR to fix it.

What is changed and how it works?

lastInsertID will be assigned according to the rowCount = 1 in fillRow().

When it's in Load Data case,rowCount should be added first before call it.

Check List

Tests

  • Unit test
  • Integration test

Related changes

  • Need to cherry-pick to the release branch

Release note

  • fix load data rowCount should be added first before call colsToRow().

@codecov
Copy link

codecov bot commented Sep 2, 2019

Codecov Report

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

@@           Coverage Diff           @@
##           master   #11980   +/-   ##
=======================================
  Coverage   81.28%   81.28%           
=======================================
  Files         444      444           
  Lines       95139    95139           
=======================================
  Hits        77329    77329           
  Misses      12322    12322           
  Partials     5488     5488

@wjhuang2016
Copy link
Member

LGTM

@AilinKid AilinKid requested a review from jackysp September 2, 2019 09:00
Copy link

@imtbkcat imtbkcat left a comment

Choose a reason for hiding this comment

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

LGTM

@imtbkcat imtbkcat added status/LGT2 Indicates that a PR has LGTM 2. status/can-merge Indicates a PR has been approved by a committer. labels Sep 2, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Sep 2, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Sep 2, 2019

@AilinKid merge failed.

@AilinKid
Copy link
Contributor Author

AilinKid commented Sep 2, 2019

/run-all-tests

@AilinKid
Copy link
Contributor Author

AilinKid commented Sep 2, 2019

/rebuild

@AilinKid
Copy link
Contributor Author

AilinKid commented Sep 2, 2019

/run-all-tests

@AilinKid AilinKid merged commit 728ed19 into pingcap:master Sep 2, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Sep 2, 2019

cherry pick to release-3.0 failed

@sre-bot
Copy link
Contributor

sre-bot commented Sep 2, 2019

cherry pick to release-2.1 failed

@AilinKid
Copy link
Contributor Author

AilinKid commented Sep 2, 2019

/run-cherry-picker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants