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

sessionctx: add testcase for set_var hint #46784

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

winoros
Copy link
Member

@winoros winoros commented Sep 8, 2023

What problem does this PR solve?

Issue Number: ref #45892

Problem Summary:

What is changed and how it works?

We lost the case that SET_VAR is used after the session var has already changed to a value rather than the default one.
This time, we must restore it to the already changed value, not the default value.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@winoros winoros requested a review from a team as a code owner September 8, 2023 08:27
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 8, 2023
Copy link
Contributor

@elsa0520 elsa0520 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-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 8, 2023
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 8, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Sep 8, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-09-08 08:29:46.206621266 +0000 UTC m=+2693350.755637252: ☑️ agreed by elsa0520.
  • 2023-09-08 08:34:09.987058643 +0000 UTC m=+2693614.536074630: ☑️ agreed by crazycs520.

@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Merging #46784 (9386dbf) into master (fa0c5ce) will decrease coverage by 0.5539%.
Report is 11 commits behind head on master.
The diff coverage is 25.0000%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #46784        +/-   ##
================================================
- Coverage   73.3027%   72.7488%   -0.5539%     
================================================
  Files          1322       1343        +21     
  Lines        396235     402992      +6757     
================================================
+ Hits         290451     293172      +2721     
- Misses        87261      91264      +4003     
- Partials      18523      18556        +33     
Flag Coverage Δ
integration 27.7714% <0.0000%> (?)
unit 73.3626% <25.0000%> (+0.0599%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 54.0444% <ø> (ø)
parser 84.9609% <ø> (ø)
br 48.4770% <ø> (-4.1412%) ⬇️
📢 Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap).

@easonn7
Copy link

easonn7 commented Sep 8, 2023

/approve

@ti-chi-bot ti-chi-bot bot added the approved label Sep 8, 2023
@hawkingrei
Copy link
Member

/hold

@ti-chi-bot ti-chi-bot bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 8, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Sep 8, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: crazycs520, easonn7, elsa0520

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hawkingrei
Copy link
Member

/unhold

@ti-chi-bot ti-chi-bot bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 8, 2023
@ti-chi-bot ti-chi-bot bot merged commit 968c712 into pingcap:master Sep 8, 2023
14 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants