MySQL Forums
Forum List  »  Docs

MySQL Client/Server Protocol: Bug with Length-coded Binary
Posted by: Chris Waterson
Date: April 11, 2006 10:37AM

I think there may be a bug in the description of length-coded binary numbers; e.g., on this page:

http://dev.mysql.com/doc/internals/en/elements.html

Specifically, I believe (and the source code appears to agree with me; cf. sql/pack.c) that if the value of the first byte is 253, then what follows is a 24-bit number encoded in the following *three* bytes. (The documentation currently states that what follows is a 32-bit number encoded in the following four bytes.)

chris

Options: ReplyQuote


Subject
Views
Written By
Posted
MySQL Client/Server Protocol: Bug with Length-coded Binary
4236
April 11, 2006 10:37AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.