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

parser: fix the result of cast (0x10 as binary(2)). #6211

Merged
merged 4 commits into from
Apr 3, 2018

Conversation

coocood
Copy link
Member

@coocood coocood commented Apr 3, 2018

For cast as binary with length, the result string is padded to the length.
We only don't do padding for mysql.TypeVarString, so change the type to mysql.TypeString if length is specified.

For cast as binary with length, the result string is padded to the length.
We only don't do padding for `mysql.TypeVarString`, so change the type to `mysql.TypeString` if length is specified.
@coocood coocood added the type/bugfix This PR fixes a bug. label Apr 3, 2018
@coocood
Copy link
Member Author

coocood commented Apr 3, 2018

/run-all-tests

@coocood
Copy link
Member Author

coocood commented Apr 3, 2018

@XuHuaiyu @tiancaiamao @zimulala PTAL

@coocood
Copy link
Member Author

coocood commented Apr 3, 2018

/run-integration-common-test

@XuHuaiyu
Copy link
Contributor

XuHuaiyu commented Apr 3, 2018

LGTM

@zz-jason
Copy link
Member

zz-jason commented Apr 3, 2018

@coocood plz resolve conflicts.

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

@zz-jason zz-jason added the status/LGT2 Indicates that a PR has LGTM 2. label Apr 3, 2018
@coocood coocood merged commit 313d9d3 into pingcap:master Apr 3, 2018
@coocood coocood deleted the binary-len branch April 3, 2018 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants