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: return correct results for user variables of datetime type (#22078) #22143

Merged
merged 3 commits into from
Jan 8, 2021

Conversation

ti-srebot
Copy link
Contributor

cherry-pick #22078 to release-4.0


What problem does this PR solve?

Issue Number: close #22077

Problem Summary:

Incorrect results for user variables of datetime type.

What is changed and how it works?

What's Changed:

use ToString() to convert datum from other types to string type, instead of GetString().

How it Works:

See code comments.

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test

Side effects

N/A

Release note

  • return correct results for user variables of datetime type

@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot
Copy link
Contributor Author

@eurekaka you're already a collaborator in bot's repo.

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@eurekaka eurekaka force-pushed the release-4.0-9cb4fb38d844 branch from a65518c to d04ffbc Compare January 4, 2021 03:29
@bb7133
Copy link
Member

bb7133 commented Jan 6, 2021

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Jan 6, 2021
@xiongjiwei
Copy link
Contributor

/run-unit-test

@jebter jebter modified the milestones: v4.0.9, v4.0.10 Jan 7, 2021
Copy link
Contributor

@qw4990 qw4990 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 status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jan 8, 2021
@qw4990
Copy link
Contributor

qw4990 commented Jan 8, 2021

/run-all-tests

@qw4990
Copy link
Contributor

qw4990 commented Jan 8, 2021

/rebuild

@eurekaka
Copy link
Contributor

eurekaka commented Jan 8, 2021

/run-all-tests

@eurekaka eurekaka merged commit 7177f49 into pingcap:release-4.0 Jan 8, 2021
@eurekaka eurekaka deleted the release-4.0-9cb4fb38d844 branch January 8, 2021 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug. type/4.0-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants