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: function INSERT should return NULL if any argument is NULL #11237

Merged
merged 4 commits into from
Jul 15, 2019

Conversation

tcmichael
Copy link

@tcmichael tcmichael commented Jul 12, 2019

What problem does this PR solve?

Function INSERT should be NULL if any argument is NULL.
Closes#11174

What is changed and how it works?

change order of error judgement.

Check List

Tests

  • Unit test
  • Integration test

@codecov
Copy link

codecov bot commented Jul 12, 2019

Codecov Report

Merging #11237 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #11237   +/-   ##
===========================================
  Coverage   81.4776%   81.4776%           
===========================================
  Files           423        423           
  Lines         90793      90793           
===========================================
  Hits          73976      73976           
  Misses        11512      11512           
  Partials       5305       5305

@ngaut
Copy link
Member

ngaut commented Jul 13, 2019

/run-all-tests

@tcmichael tcmichael changed the title Function INSERT should be NULL if any argument is NULL. WIP:Function INSERT should be NULL if any argument is NULL. Jul 14, 2019
@tcmichael tcmichael changed the title WIP:Function INSERT should be NULL if any argument is NULL. Function INSERT should be NULL if any argument is NULL. Jul 14, 2019
@tcmichael
Copy link
Author

@SunRunAway PTAL

Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

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

LGTM

@SunRunAway
Copy link
Contributor

/run-all-tests

@SunRunAway SunRunAway added component/expression contribution This PR is from a community contributor. status/LGT1 Indicates that a PR has LGTM 1. type/bugfix This PR fixes a bug. labels Jul 15, 2019
@SunRunAway SunRunAway self-requested a review July 15, 2019 03:20
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

@wshwsh12 wshwsh12 added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 15, 2019
@eurekaka eurekaka changed the title Function INSERT should be NULL if any argument is NULL. expression: function INSERT should return NULL if any argument is NULL Jul 15, 2019
@eurekaka
Copy link
Contributor

/run-all-tests

@eurekaka eurekaka merged commit a090e6b into pingcap:master Jul 15, 2019
@eurekaka
Copy link
Contributor

@tcmichael Thanks for the contribution, it would be appreciated if you can help to cherry-pick this fix to release-2.1 and release-3.0 branch as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression contribution This PR is from a community contributor. 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.

Function INSERT should be NULL if any argument is NULL
6 participants