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

expression: fix unmatched column lengths errors caused by builtinGreatestStringSig and builtinLeastStringSig #19754

Merged
merged 2 commits into from
Sep 3, 2020

Conversation

qw4990
Copy link
Contributor

@qw4990 qw4990 commented Sep 3, 2020

What problem does this PR solve?

Issue Number: close #16147

Problem Summary: expression: fix unmatched column lengths errors caused by builtinGreatestStringSig and builtinLeastStringSig

What is changed and how it works?

Built-in functions builtinGreatestStringSig and builtinLeastStringSig allocate buffers from their own buffer pool, but they don't initialize allocated buffers before using them, which may cause some problems.

Check List

Tests

  • Unit test

Release note

  • expression: fix unmatched column lengths errors caused by builtinGreatestStringSig and builtinLeastStringSig

@qw4990 qw4990 added type/bugfix This PR fixes a bug. sig/execution SIG execution needs-cherry-pick-4.0 labels Sep 3, 2020
@qw4990 qw4990 requested a review from a team as a code owner September 3, 2020 07:53
Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 3, 2020
Copy link
Contributor

@wshwsh12 wshwsh12 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Sep 3, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Sep 3, 2020
@qw4990
Copy link
Contributor Author

qw4990 commented Sep 3, 2020

/run-all-tests

@qw4990
Copy link
Contributor Author

qw4990 commented Sep 3, 2020

/run-unit-test
/run-integration-common-test

@qw4990
Copy link
Contributor Author

qw4990 commented Sep 3, 2020

/run-unit-test

@qw4990 qw4990 merged commit 0338bce into pingcap:master Sep 3, 2020
ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Sep 3, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #19758

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution 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.

Error 1105: should ensure all columns have the same length
4 participants