From 73be194f966428646ed13eea0c7b73034cff9f8b Mon Sep 17 00:00:00 2001 From: "igor@rurik.mysql.com" <> Date: Mon, 8 Aug 2005 16:51:12 -0700 Subject: 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 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/item_cmpfunc.cc') 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; } -- cgit v1.2.1