Resultset row
You are viewing an old version of this article. View
the current version here.
Text resultset row
- for each column
- string<lenenc> column data
Binary resultset row
- byte<1> 0x00 header
- byte<(number_of_columns + 9) / 8> NULL-Bitmap
- for number_of_columns
- if column value is not null
- if type in (BIGINT, DOUBLE)
- int<8> column value
- if type in (INTEGER, MEDIUMINT, FLOAT)
- int<4> column value
- if type in (SMALLINT, YEAR)
- int<2> column value
- if type in (TINYINT)
- int<1> column value
- else
- string<lenenc> column value
- if type in (BIGINT, DOUBLE)
- if column value is not null
NULL-Bitmap values
The NULL-Bitmap indicate if parameters for a column is null (one bit per parameter) beginning with 3rd bit. NULL-bitmap size is (number_of_columns + 9) / 8.
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.