|
|||||||||||
|
Re: question about Field::null_ptr
From: Ingo Strüwing <ingo(at)mysql.com>
Date: Thu Jul 12 2007 - 12:56:44 EDT
Vangelis Katsikaros wrote:
The NULL bits are used for columns that can have a NULL value. One bit is sufficient to tell if the column value is NULL or not. One byte has 8 bits. So we need (number of non-not-NULL columns + 7) / 8 bytes to encode NULL values for all columns. null_ptr points to the byte in wich we have the bit for this column (field). null_bit is the number of the bit within that byte.
Regards
-- Ingo Strüwing, Senior Software Developer MySQL GmbH, Radlkoferstr. 2, D-81373 München Geschäftsführer: Kaj Arnö - HRB München 162140 -- MySQL Internals Mailing List For list archives: http://lists.mysql.com/internals To unsubscribe: http://lists.mysql.com/internals?unsub=lists@pantek.comReceived on Thu Jul 12 12:56:59 2007 This archive was generated by hypermail 2.1.8 : Thu Aug 02 2007 - 01:57:05 EDT |
||||||||||
|
|||||||||||