StarRocks / starrocks

StarRocks, a Linux Foundation project, is a next-generation sub-second MPP OLAP database for full analytics scenarios, including multi-dimensional analytics, real-time analytics, and ad-hoc queries.
https://starrocks.io
Apache License 2.0
8.29k stars 1.68k forks source link

[BugFix] Fix parse Mysql Client Protocol COM_CHANGE_USER with conn_attr error bug (backport #47796) #47815

Closed mergify[bot] closed 2 days ago

mergify[bot] commented 2 days ago

Why I'm doing:

refer : https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_com_change_user.html

What I'm doing:

There is an error when parsing the conn_attr field of COM_CHANGE_USER, because that field is the length of the following attr, not the number of attrs. Fixes #issue

What type of PR is this:

Does this PR entail a change in behavior?

If yes, please specify the type of change:

Checklist:

Bugfix cherry-pick branch check:

What type of PR is this:

Does this PR entail a change in behavior?

If yes, please specify the type of change:

Checklist:

sonarcloud[bot] commented 2 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud