diff options
-rw-r--r-- | sql/item_subselect.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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; + } } } } |