Commit 0091fa2e authored by monty@narttu.mysql.fi's avatar monty@narttu.mysql.fi

Fixed bug in sub select after last merge

parent 4b491cb7
...@@ -1098,11 +1098,15 @@ int subselect_indexsubquery_engine::exec() ...@@ -1098,11 +1098,15 @@ int subselect_indexsubquery_engine::exec()
null_finding= 1; null_finding= 1;
/* Check if there exists a row with a null value in the index */ /* Check if there exists a row with a null value in the index */
if ((error= safe_index_read(tab))) if ((error= safe_index_read(tab)))
{
if (error < 0)
error= 0; // Key not found
break; break;
} }
} }
} }
} }
}
DBUG_RETURN(error != 0); DBUG_RETURN(error != 0);
} }
......
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