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

executor: add test for rebuilding prepared statement plan. #5220

Merged
merged 6 commits into from
Nov 27, 2017

Conversation

coocood
Copy link
Member

@coocood coocood commented Nov 25, 2017

No description provided.

@tiancaiamao
Copy link
Contributor

LGTM

c.Assert(err, IsNil)
rs, err := stmt.Exec(goctx.Background())
c.Assert(err, IsNil)
_, err = rs.Next()
Copy link
Member

Choose a reason for hiding this comment

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

Should we check the return value?

@tiancaiamao
Copy link
Contributor

@coocood
Copy link
Member Author

coocood commented Nov 27, 2017

@shenli
SInce we rebuild the plan in the middle, we can't use testkit to check value, the test code to check value would be tedious, but the nil error already confirmed the rebuild plan works.

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 zz-jason added the status/LGT2 Indicates that a PR has LGTM 2. label Nov 27, 2017
@winoros winoros merged commit f3d2a62 into pingcap:master Nov 27, 2017
@coocood coocood deleted the rebuild-prepared-plan-test branch November 28, 2017 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants