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: fix client field list #726

Merged
merged 3 commits into from
Aug 26, 2022
Merged

fix: fix client field list #726

merged 3 commits into from
Aug 26, 2022

Conversation

black-06
Copy link

What bug does this MR fix?

Client FieldList is missing the first field because check ERR Packet.

How is the bug fixed?

Check ERR Packet in loop, in this way we can parse the first packet into FieldData

@lance6716
Copy link
Collaborator

Hi, can you add an unit test to explain what's FieldList? Do you mean https://dev.mysql.com/doc/internals/en/com-field-list.html ?

@black-06
Copy link
Author

Yes, it is ComFieldList.
I will add a test

@black-06
Copy link
Author

I added a simple test that asserts fileds length.

@black-06
Copy link
Author

I should use connTestSuite :(

@lance6716 lance6716 merged commit 1c55c36 into go-mysql-org:master Aug 26, 2022
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.

2 participants