Skip to content

Fix error around breaking of multistatements#6824

Merged
systay merged 1 commit intovitessio:release-7.0from
planetscale:backport-6808
Oct 7, 2020
Merged

Fix error around breaking of multistatements#6824
systay merged 1 commit intovitessio:release-7.0from
planetscale:backport-6808

Conversation

@systay
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

@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