summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-11-25 18:51:44 -0800
committerunknown <igor@rurik.mysql.com>2005-11-25 18:51:44 -0800
commitfd4fcd2f7ff58591f3e43a82d3d1dc50758bc8ab (patch)
tree6080e81758e8f788bbb3da5fa2cdb7e9c84478c9 /sql/item_cmpfunc.cc
parent98b81f0a6d3d499eaa85122c74bf09c331a70913 (diff)
downloadmariadb-git-fd4fcd2f7ff58591f3e43a82d3d1dc50758bc8ab.tar.gz
Fixed bug #15106.
A typo bug caused loss of a predicate of the form field=const in some cases. mysql-test/r/select.result: Added a test case for bug #15106. mysql-test/t/select.test: Added a test case for bug #15106.
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index 2a7754c0217..ae8437674b2 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -3662,7 +3662,7 @@ void Item_equal::merge(Item_equal *item)
the multiple equality already contains a constant and its
value is not equal to the value of c.
*/
- add(const_item);
+ add(c);
}
cond_false|= item->cond_false;
}