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

executor: fix bug when auto_increment meets unsigned. #4824

Merged
merged 3 commits into from
Oct 19, 2017

Conversation

winoros
Copy link
Member

@winoros winoros commented Oct 19, 2017

fix #4817
This bug will make the index key encoded to wrong value and make range query failed.
PTAL @shenli @coocood @hanfei1991

@pingcap pingcap deleted a comment from sre-bot Oct 19, 2017
Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

row[i].SetUint64(uint64(recordID))
} else {
row[i].SetInt64(recordID)
}
row[i].SetInt64(recordID)
Copy link
Member

Choose a reason for hiding this comment

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

remove this

row[i].SetUint64(uint64(recordID))
} else {
row[i].SetInt64(recordID)
}
row[i].SetInt64(recordID)
Copy link
Member

Choose a reason for hiding this comment

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

This line should be removed?

Copy link
Member

Choose a reason for hiding this comment

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

Should be covered by test.

Copy link
Member Author

Choose a reason for hiding this comment

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

covered.

Copy link
Member

@hanfei1991 hanfei1991 left a comment

Choose a reason for hiding this comment

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

LGTM

@hanfei1991 hanfei1991 merged commit 16eb0ae into pingcap:master Oct 19, 2017
winoros added a commit to winoros/tidb that referenced this pull request Oct 19, 2017
@winoros winoros deleted the auto-increment branch October 24, 2017 11:37
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.

select return empty when using non-primary key auto_increment column as where condition
5 participants