summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorigor@rurik.mysql.com <>2005-08-08 16:51:12 -0700
committerigor@rurik.mysql.com <>2005-08-08 16:51:12 -0700
commit73be194f966428646ed13eea0c7b73034cff9f8b (patch)
tree6244297d7257c524e419cfff5becdaaa206503b5 /sql/item_cmpfunc.cc
parent0ff109f1701cf402cc6cf43a0a47c8ab8d2b1324 (diff)
downloadmariadb-git-73be194f966428646ed13eea0c7b73034cff9f8b.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.
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;
}