From f89d91c53c93146be2f9ead4e09b2d456e38dc1c Mon Sep 17 00:00:00 2001 From: "monty@hundin.mysql.fi" <> Date: Mon, 2 Dec 2002 10:47:15 +0200 Subject: [PATCH] Fixed bug in <=> NULL handling --- sql/opt_range.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 0645fe15df3..b2128c3eb4a 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -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));