summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.h
diff options
context:
space:
mode:
authorigor@olga.mysql.com <>2007-08-15 10:24:18 -0700
committerigor@olga.mysql.com <>2007-08-15 10:24:18 -0700
commitd790ec42e1de68d93e4c6c19580aa88f4d06dedb (patch)
treea8cef5ced9d5c39ccf4804a0b7d3b1f661bd187b /sql/item_cmpfunc.h
parent1cc8f0e383a9c7e0238feee925ea285afe410fab (diff)
downloadmariadb-git-d790ec42e1de68d93e4c6c19580aa88f4d06dedb.tar.gz
Fixed bug #30396.
The bug caused memory corruption for some queries with top OR level in the WHERE condition if they contained equality predicates and other sargable predicates in disjunctive parts of the condition. The corruption happened because the upper bound of the memory allocated for KEY_FIELD and SARGABLE_PARAM internal structures containing info about potential lookup keys was calculated incorrectly in some cases. In particular it was calculated incorrectly when the WHERE condition was an OR formula with disjuncts being AND formulas including equalities and other sargable predicates.
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r--sql/item_cmpfunc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h
index 9afc0507817..7b6eaef08ec 100644
--- a/sql/item_cmpfunc.h
+++ b/sql/item_cmpfunc.h
@@ -1506,7 +1506,6 @@ public:
the current and level */
COND_EQUAL()
{
- max_members= 0;
upper_levels= 0;
}
};