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

什么情况下event.Rows长度会为0 或者为nil? #810

Closed
zhanghaiyang9999 opened this issue Aug 7, 2023 · 1 comment
Closed

什么情况下event.Rows长度会为0 或者为nil? #810

zhanghaiyang9999 opened this issue Aug 7, 2023 · 1 comment

Comments

@zhanghaiyang9999
Copy link

使用下面的代码:
ev, err := streamer.GetEvent(contx)
event := ev.Event.(*replication.RowsEvent)
当ev.Header.EventType为replication.WRITE_ROWS_EVENTv1或者为 replication.WRITE_ROWS_EVENTv2时,正常情况下event.Rows会有值,但是测试过程中遇到过ev.Header.EventType为replication.WRITE_ROWS_EVENTv1或者为 replication.WRITE_ROWS_EVENTv2时,event.Rows的长度为0或者nil,不知道什么条件下会出现这种情况。

@lance6716
Copy link
Collaborator

duplicate with #811

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

No branches or pull requests

2 participants