Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Cherry-pick 2.1: Fix interpretation of integers in a BIT column (#161) #164

Merged
merged 1 commit into from
Apr 19, 2019

Conversation

kennytm
Copy link
Collaborator

@kennytm kennytm commented Apr 16, 2019

What problem does this PR solve?

Cherry-picks #161 to 2.1 for 2.1.9 release.

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test

Side effects

Related changes

  • Need to be included in the release note

* tests: fix existing test failure

* mydump: fixed conversion of integers into bits

We need to create a special branch for integers, since casting 123 and
'123' into BIT type behave differently.

Also fixed handling of 0x/0b bit strings since Ragel doesn't recognize
'+' in a regex -_-.

* mydump: store description of `token` in an array instead of switch cases

* tests: test behavior of integers for ENUM and SET types as well
@kennytm kennytm added 2.1-cherry-pick The target branch is release-2.1 status/PTAL This PR is ready for review. Add this label back after committing new changes priority/important type/cherry-pick Cherry-pick (backport) labels Apr 16, 2019
@kennytm
Copy link
Collaborator Author

kennytm commented Apr 16, 2019

/run-all-tests tidb=release-2.1 pd=release-2.1 tikv=release-2.1

@kennytm
Copy link
Collaborator Author

kennytm commented Apr 16, 2019

PTAL @GregoryIan @lonng

@IANTHEREAL
Copy link
Collaborator

do we need code?

@lonng
Copy link
Contributor

lonng commented Apr 17, 2019

LGTM

@kennytm
Copy link
Collaborator Author

kennytm commented Apr 17, 2019

@GregoryIan No, that specific line was added to fix breakage introduced in #157, but was not backported to 2.x.

@kennytm kennytm added status/LGT1 One reviewer already commented LGTM (LGTM1) and removed status/PTAL This PR is ready for review. Add this label back after committing new changes labels Apr 17, 2019
@IANTHEREAL
Copy link
Collaborator

LGTM

@IANTHEREAL IANTHEREAL added status/LGT2 Two reviewers already commented LGTM, ready for merge (LGTM2) and removed status/LGT1 One reviewer already commented LGTM (LGTM1) labels Apr 19, 2019
@kennytm kennytm merged commit 5a57c9f into release-2.1 Apr 19, 2019
@kennytm kennytm deleted the kennytm/fix-insert-bit-cherry-pick-2.1 branch April 25, 2019 06:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.1-cherry-pick The target branch is release-2.1 status/LGT2 Two reviewers already commented LGTM, ready for merge (LGTM2) type/cherry-pick Cherry-pick (backport)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants