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 error around breaking of multistatements #6824

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

systay
Copy link
Collaborator

@systay systay commented Oct 6, 2020

When a multistatement query is received, any errors should abort the execution of the remaining queries.

The execQuery and handleNextCommand were returning an error, but not actually using the error value - just checking if it was nil or not.

We need to be able to know on the outside of execQuery if an error occured and if it was an error we need to close the connection for or if it was a simple execution error.

This is a squashed backport of #6808

When a multistatement query is received, any errors should
abort the execution of the remaining queries.

The `execQuery` and `handleNextCommand` were returning an error,
but not actually using the error value - just checking if it was nil or not.

We need to be able to know on the outside of `execQuery` if an error occured and if it was an error we need to close the connection for or if it was a simple execution error.

This is a squashed backport of vitessio#6808

Signed-off-by: Andres Taylor <andres@planetscale.com>
@systay systay requested a review from sougou as a code owner October 6, 2020 10:08
@systay systay requested a review from deepthi October 6, 2020 10:09
Copy link
Member

@deepthi deepthi left a comment

Choose a reason for hiding this comment

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

LGTM

@systay systay merged commit d65141e into vitessio:release-7.0 Oct 7, 2020
@systay systay deleted the backport-6808 branch October 7, 2020 10:54
@askdba askdba modified the milestones: v8.0, v7.0.3 Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants