not accessing null_bit correctly

git-svn-id: file:///svn/mysql/tokudb-engine/src@4164 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Zardosht Kasheff 2013-04-17 00:01:41 -04:00 committed by Yoni Fogel
parent dd715af4cd
commit c5d5e6c279

View file

@ -1333,7 +1333,7 @@ DBT* ha_tokudb::create_dbt_key_from_key(DBT * key, KEY* key_info, uchar * buff,
//
if (key_part->field->null_bit) {
/* Store 0 if the key part is a NULL part */
if (record[key_part->null_offset] & key_part->null_bit) {
if (record[key_part->null_offset] & key_part->field->null_bit) {
*buff++ = 0;
//
// fractal tree does not handle this falg at the moment