Documentation Home
MySQL Internals Manual


MySQL Internals Manual  /  ...  /  Binary Protocol Resultset Row

14.7.2 Binary Protocol Resultset Row

A Binary Protocol Resultset Row is made up of the NULL bitmap containing as many bits as we have columns in the resultset + 2 and the values for columns that are not NULL in the Binary Protocol Value format.

ProtocolBinary::ResultsetRow:

row of a binary resultset (COM_STMT_EXECUTE)

Payload
1              packet header [00]
string[$len]   NULL-bitmap, length: (column-count + 7 + 2) / 8
string[$len]   values
Example
09 00 00 04 00 00 06 66 6f 6f 62 61 72

User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.