Commit f89d91c5 authored by monty@hundin.mysql.fi's avatar monty@hundin.mysql.fi

Fixed bug in <=> NULL handling

parent 665554d7
...@@ -1030,7 +1030,7 @@ get_mm_leaf(Field *field,KEY_PART *key_part, ...@@ -1030,7 +1030,7 @@ get_mm_leaf(Field *field,KEY_PART *key_part,
{ {
/* convert column_name <=> NULL -> column_name IS NULL */ /* convert column_name <=> NULL -> column_name IS NULL */
char *str= (char*) sql_alloc(1); // Get local copy of key char *str= (char*) sql_alloc(1); // Get local copy of key
if (!*str) if (!str)
DBUG_RETURN(0); DBUG_RETURN(0);
*str = 1; *str = 1;
DBUG_RETURN(new SEL_ARG(field,str,str)); DBUG_RETURN(new SEL_ARG(field,str,str));
......
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