summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2013-01-17 02:27:10 +0200
committerMichael Widenius <monty@askmonty.org>2013-01-17 02:27:10 +0200
commitc65f9a1914b8abd26dd7f31099ed09116e429b9d (patch)
treeb995f6fbd899cf1c424d6e5d2b77d1c9c39acd06 /sql/item.cc
parentc4e00d03e79c6202100f15244b10a74386d16568 (diff)
downloadmariadb-git-c65f9a1914b8abd26dd7f31099ed09116e429b9d.tar.gz
Don't reset maybe_null in update_used_tables(); This breaks ROLLUP
This fixed failing test in group_by.test mysql-test/r/join_outer.result: Updated test case mysql-test/r/join_outer_jcl6.result: Updated test case sql/item.cc: Don't reset maybe_null in update_used_tables(); This breaks ROLLUP sql/item.h: Don't reset maybe_null in update_used_tables(); This breaks ROLLUP sql/item_cmpfunc.h: Don't reset maybe_null in update_used_tables(); This breaks ROLLUP
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc
index e6462d1c070..2c435eb6a9f 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -9603,7 +9603,7 @@ void Item_ref::update_used_tables()
{
if (!get_depended_from())
(*ref)->update_used_tables();
- maybe_null= (*ref)->maybe_null;
+ maybe_null|= (*ref)->maybe_null;
}
void Item_direct_view_ref::update_used_tables()