1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Fixed bug in <=> NULL handling

This commit is contained in:
monty@hundin.mysql.fi
2002-12-02 10:47:15 +02:00
parent 665554d7a2
commit f89d91c53c

View File

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