-
Notifications
You must be signed in to change notification settings - Fork 1k
CLIENT_DEPRECATE_EOF #1059
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
base: master
Are you sure you want to change the base?
CLIENT_DEPRECATE_EOF #1059
Conversation
9466640
to
9225771
Compare
https://dev.mysql.com/doc/dev/mysql-server/9.3.0/page_protocol_com_stmt_prepare.html warnings is optional from server, & is preceded by a reserved byte
9225771
to
19e6e0e
Compare
|
||
// EOF Packet | ||
if c.isEOFPacket(data) { | ||
if data[0] == mysql.EOF_HEADER && len(data) <= 0xffffff { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why we change it to len(data) <= 0xffffff
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will add comment later, bit unavailable this week
https://dev.mysql.com/worklog/task/?id=7766
In case of huge data packet with length greater than 16777216L client will treat it as a data packet and process accordingly.
Co-authored-by: lance6716 <[email protected]>
https://bugs.mysql.com/bug.php?id=91533
Maybe masking added here should also apply to what we send back to server |
Taking a stab at #980
Part of investigating #1056
Something I noticed was that server capabilities aren't limited by what's sent as client capabilities. Reading docs it seems like both ends are expected to look at the intersection of each others flags. So I decided to tweaks things so that
c.capabilities
is that intersection, rather than whatever server sendsSeems to be working with latest mysql, but on 8.0.25 instead of a hang I get an empty result set back (while
go-sql-driver/mysql
still pulls the non-empty result)