summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2013-03-08 00:25:26 -0800
committerIgor Babaev <igor@askmonty.org>2013-03-08 00:25:26 -0800
commit926b0f54c9b0f261460e886969dde9bbf1916852 (patch)
tree1b36c44b9c79731dd8b712451725ea88b2dcfcc8 /sql/item_cmpfunc.h
parent888db0ec09c5f54b69feda2defd2e9ae49fab75c (diff)
downloadmariadb-git-926b0f54c9b0f261460e886969dde9bbf1916852.tar.gz
Fixed bug mdev-4250.
This is a bug in the legacy code. It did not manifest itself because it was masked by other bugs that were fixed by the patches for mdev-4172 and mdev-4177.
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r--sql/item_cmpfunc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h
index 33f147b7b0f..1b8687cfcfc 100644
--- a/sql/item_cmpfunc.h
+++ b/sql/item_cmpfunc.h
@@ -1798,6 +1798,15 @@ public:
{
upper_levels= 0;
}
+ void copy(COND_EQUAL &cond_equal)
+ {
+ max_members= cond_equal.max_members;
+ upper_levels= cond_equal.upper_levels;
+ if (cond_equal.current_level.is_empty())
+ current_level.empty();
+ else
+ current_level= cond_equal.current_level;
+ }
};