diff options
author | igor@rurik.mysql.com <> | 2005-08-08 16:51:12 -0700 |
---|---|---|
committer | igor@rurik.mysql.com <> | 2005-08-08 16:51:12 -0700 |
commit | 73be194f966428646ed13eea0c7b73034cff9f8b (patch) | |
tree | 6244297d7257c524e419cfff5becdaaa206503b5 /sql/item_cmpfunc.cc | |
parent | 0ff109f1701cf402cc6cf43a0a47c8ab8d2b1324 (diff) | |
download | mariadb-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.cc | 2 |
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; } |