From 9e122eff3886894c9cfb82cc443a8529f28de14c Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 7 Oct 2003 14:04:59 +0300 Subject: Fixed bug in sub select after last merge --- sql/item_subselect.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc index 937d6f61913..0f0ad2e0765 100644 --- a/sql/item_subselect.cc +++ b/sql/item_subselect.cc @@ -1098,7 +1098,11 @@ int subselect_indexsubquery_engine::exec() null_finding= 1; /* Check if there exists a row with a null value in the index */ if ((error= safe_index_read(tab))) + { + if (error < 0) + error= 0; // Key not found break; + } } } } -- cgit v1.2.1