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

mysql: fixing index out of bounds in conn.go #875

Merged
merged 1 commit into from
May 17, 2024
Merged

Conversation

sravotto
Copy link
Contributor

@sravotto sravotto commented May 16, 2024

This change fixes a panic that could be caused by rows in a stream not conforming to the schema provided in TableMapEvents.

It also adds test cases to verify the functionality of onDataTuple function.

Fixes #858.


This change is Reviewable

@sravotto sravotto force-pushed the sr8_issue858 branch 3 times, most recently from 4460f79 to 121ed36 Compare May 16, 2024 21:57
@sravotto sravotto marked this pull request as ready for review May 16, 2024 22:14
Copy link
Member

@bobvawter bobvawter left a comment

Choose a reason for hiding this comment

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

:lgtm: w/ nit.

Reviewed 1 of 2 files at r1, all commit messages.
Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @BramGruneir and @sravotto)


internal/source/mylogical/conn_test.go line 17 at r1 (raw file):

// SPDX-License-Identifier: Apache-2.0

// Package mylogical contains support for reading a mySQL logical

This package comment seems redundant, especially in test code.

This change fixes a panic that could be caused by rows in a stream not conforming
to the schema provided in TableMapEvents.

It also adds test cases to verify the functionality of onDataTuple function.

Fixes #858.
Copy link
Contributor Author

@sravotto sravotto left a comment

Choose a reason for hiding this comment

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

Thanks!

Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @bobvawter and @BramGruneir)


internal/source/mylogical/conn_test.go line 17 at r1 (raw file):

Previously, bobvawter (Bob Vawter) wrote…

This package comment seems redundant, especially in test code.

Done.

@sravotto sravotto added this pull request to the merge queue May 17, 2024
Merged via the queue into master with commit be17276 May 17, 2024
48 of 49 checks passed
@sravotto sravotto deleted the sr8_issue858 branch May 17, 2024 00:53
@bobvawter bobvawter added the R-bugfix Release notes: User-visible bugfixes label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R-bugfix Release notes: User-visible bugfixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic in mylogical/conn.go; index out of bounds
2 participants