Resultset row

You are viewing an old version of this article. View the current version here.

Text resultset row

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)
      • if type in (INTEGER, MEDIUMINT, FLOAT)
      • if type in (SMALLINT, YEAR)
      • if type in (TINYINT)
      • else

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.