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

*: fix the read-only check for the prepare/execute statement #9723

Merged
merged 7 commits into from
Apr 1, 2019

Conversation

jackysp
Copy link
Member

@jackysp jackysp commented Mar 14, 2019

What problem does this PR solve?

For binary protocol, prepare select * from t where i = 1 then execute stmt will mark the statement as not read-only.

What is changed and how it works?

Get the real prepare statement when checking read-only.

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change

Related changes

  • Need to cherry-pick to the release branch

@jackysp jackysp added the sig/execution SIG execution label Mar 14, 2019
@jackysp
Copy link
Member Author

jackysp commented Mar 14, 2019

/run-all-tests

@jackysp jackysp marked this pull request as ready for review March 15, 2019 02:32
@jackysp
Copy link
Member Author

jackysp commented Mar 25, 2019

/run-all-tests

@codecov
Copy link

codecov bot commented Mar 25, 2019

Codecov Report

Merging #9723 into master will increase coverage by 0.0957%.
The diff coverage is 72.7272%.

@@               Coverage Diff                @@
##             master      #9723        +/-   ##
================================================
+ Coverage   77.4754%   77.5712%   +0.0957%     
================================================
  Files           403        404         +1     
  Lines         81782      81761        -21     
================================================
+ Hits          63361      63423        +62     
+ Misses        13705      13649        -56     
+ Partials       4716       4689        -27

@jackysp
Copy link
Member Author

jackysp commented Mar 25, 2019

/run-all-tests

@jackysp
Copy link
Member Author

jackysp commented Mar 25, 2019

/run-unit-test

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason
Copy link
Member

/run-all-tests

@zz-jason zz-jason added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 30, 2019
Copy link

@imtbkcat imtbkcat left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants