Commit bffd0153 authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

after review fixes

parent d2265b63
...@@ -3267,11 +3267,11 @@ static bool create_ref_for_key(JOIN *join, JOIN_TAB *j, KEYUSE *org_keyuse, ...@@ -3267,11 +3267,11 @@ static bool create_ref_for_key(JOIN *join, JOIN_TAB *j, KEYUSE *org_keyuse,
&keyinfo->key_part[i], &keyinfo->key_part[i],
(char*) key_buff,maybe_null); (char*) key_buff,maybe_null);
/* /*
Remmeber if we are going to use REF_OR_NULL Remeber if we are going to use REF_OR_NULL
But only if field _really_ can be null i.e. we force JT_REF But only if field _really_ can be null i.e. we force JT_REF
instead of JT_REF_OR_NULL in case if field can't be null instead of JT_REF_OR_NULL in case if field can't be null
*/ */
if (keyuse->optimize & KEY_OPTIMIZE_REF_OR_NULL && maybe_null) if ((keyuse->optimize & KEY_OPTIMIZE_REF_OR_NULL) && maybe_null)
null_ref_key= key_buff; null_ref_key= key_buff;
key_buff+=keyinfo->key_part[i].store_length; key_buff+=keyinfo->key_part[i].store_length;
} }
......
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