Commit 13ae60ce authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1567

add null bit for fields in a key

git-svn-id: file:///svn/mysql/tokudb-engine/src@10944 c7de825b-a66e-492c-adef-691d508d4ae1
parent b55f6ea1
...@@ -1147,6 +1147,13 @@ int create_key_descriptor(KEY* key, uchar* buf, u_int32_t* num_bytes) { ...@@ -1147,6 +1147,13 @@ int create_key_descriptor(KEY* key, uchar* buf, u_int32_t* num_bytes) {
assert (type < 256); assert (type < 256);
*pos = (uchar)(type & 255); *pos = (uchar)(type & 255);
pos++; pos++;
//
// The second bytes states if there is a null byte
//
*pos = field->null_bit;
pos++;
// //
// based on the type, extra data follows afterwards // based on the type, extra data follows afterwards
// doubles and floats have no extra information // doubles and floats have no extra information
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment