summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-08-08 16:51:12 -0700
committerunknown <igor@rurik.mysql.com>2005-08-08 16:51:12 -0700
commit6f0a6260976712e6b9c828ebb120165540c14935 (patch)
tree6244297d7257c524e419cfff5becdaaa206503b5 /sql/item_cmpfunc.cc
parente63010037479aaebb191e43032b5f5365419a48c (diff)
downloadmariadb-git-6f0a6260976712e6b9c828ebb120165540c14935.tar.gz
subselect.test, subselect.result:
Added a test case for bug #12392. item_cmpfunc.cc: Fixed bug #12392. Missing handling of rows containing NULL components when evaluating IN predicates caused a crash. sql/item_cmpfunc.cc: Fixed bug #12392. Missing handling of rows containing NULL components when evaluating IN predicates caused a crash. mysql-test/r/subselect.result: Added a test case for bug #12392. mysql-test/t/subselect.test: Added a test case for bug #12392.
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index f24638d1a93..9146b3c3b9e 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -1551,6 +1551,8 @@ in_row::~in_row()
byte *in_row::get_value(Item *item)
{
tmp.store_value(item);
+ if (item->is_null())
+ return 0;
return (byte *)&tmp;
}