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 "values" function in non-insert statement #8019

Merged
merged 8 commits into from Nov 5, 2018

Conversation

zz-jason
Copy link
Member

What problem does this PR solve?

The document for the "values" function in MySQL 5.7, https://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html#function_values:

The VALUES() function is meaningful only in the ON DUPLICATE KEY UPDATE clause of INSERT statements and returns NULL otherwise

What is changed and how it works?

return NULL for non-insert statements

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch

@zz-jason
Copy link
Member Author

@XuHuaiyu @eurekaka PTAL

@zz-jason
Copy link
Member Author

/run-all-tests

@zz-jason
Copy link
Member Author

zz-jason commented Nov 2, 2018

/run-all-tests

@zz-jason
Copy link
Member Author

zz-jason commented Nov 2, 2018

/run-all-tests

@zz-jason
Copy link
Member Author

zz-jason commented Nov 2, 2018

/run-unit-test

Copy link
Contributor

@eurekaka eurekaka left a comment

Choose a reason for hiding this comment

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

LGTM

@eurekaka eurekaka added the status/LGT1 Indicates that a PR has LGTM 1. label Nov 5, 2018
Copy link
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

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

LGTM

@alivxxx alivxxx added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Nov 5, 2018
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/bug-fix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants