summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-06-25 05:45:50 -0700
committerunknown <igor@rurik.mysql.com>2005-06-25 05:45:50 -0700
commit3f499c32d44005906ad08c34011fbe96c598230a (patch)
treeb585579151849e8e7a27eccdfc97b171bea803a9 /sql/item_subselect.cc
parenta7e66efc2cc37b8ca32868ac8c8e3e3c05675e48 (diff)
parent26576e9011bad5d4cc52063f8e99378ada1a5c8f (diff)
downloadmariadb-git-3f499c32d44005906ad08c34011fbe96c598230a.tar.gz
Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1
into rurik.mysql.com:/home/igor/mysql-4.1
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index ebc08545566..82954a664c0 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -1361,7 +1361,7 @@ int subselect_uniquesubquery_engine::exec()
TABLE *table= tab->table;
for (store_key **copy=tab->ref.key_copy ; *copy ; copy++)
{
- if (tab->ref.key_err= (*copy)->copy())
+ if ((tab->ref.key_err= (*copy)->copy()) & 1)
{
table->status= STATUS_NOT_FOUND;
DBUG_RETURN(1);
@@ -1414,7 +1414,7 @@ int subselect_indexsubquery_engine::exec()
for (store_key **copy=tab->ref.key_copy ; *copy ; copy++)
{
- if (tab->ref.key_err= (*copy)->copy())
+ if ((tab->ref.key_err= (*copy)->copy()) & 1)
{
table->status= STATUS_NOT_FOUND;
DBUG_RETURN(1);