summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <bell@laptop.sanja.is.com.ua>2003-10-07 16:26:46 +0300
committerunknown <bell@laptop.sanja.is.com.ua>2003-10-07 16:26:46 +0300
commitd1ab51eb947623f45a8314cb9c0b6ddc15f0d148 (patch)
treecba3c17cb3ca5d7f4f75504721c8ed3401f9b3c5
parentfae46f7c9f1be65c5bf5604cd1f91dea3c8be9c7 (diff)
downloadmariadb-git-d1ab51eb947623f45a8314cb9c0b6ddc15f0d148.tar.gz
fixed error detection
-rw-r--r--sql/item_subselect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 3070fb43b27..fd024daca08 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -1094,7 +1094,7 @@ int subselect_indexsubquery_engine::exec()
*tab->null_ref_key= 1;
null_finding= 1;
/* 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) == 1)))
break;
}
}