summaryrefslogtreecommitdiff
path: root/sql/item_subselect.h
diff options
context:
space:
mode:
authorgkodinov/kgeorge@magare.gmz <>2007-10-30 14:27:21 +0200
committergkodinov/kgeorge@magare.gmz <>2007-10-30 14:27:21 +0200
commit01fe24cd68bfd00183745df215c98175bf898afe (patch)
treec3c871076956b9278b40fd28252af390b8c10a78 /sql/item_subselect.h
parent76bf63ba4ba05f79abbdb3ba74de068324088851 (diff)
downloadmariadb-git-01fe24cd68bfd00183745df215c98175bf898afe.tar.gz
Bug #31884: Assertion + crash in subquery in the SELECT clause.
Item_in_subselect's only externally callable method is val_bool(). However the nullability in the wrapper class (Item_in_optimizer) is established by calling the "forbidden" method val_int(). Fixed to use the correct method (val_bool() ) to establish nullability of Item_in_subselect in Item_in_optimizer.
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r--sql/item_subselect.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h
index 118609671b8..51dcd3ca175 100644
--- a/sql/item_subselect.h
+++ b/sql/item_subselect.h
@@ -306,6 +306,7 @@ public:
double val_real();
String *val_str(String*);
my_decimal *val_decimal(my_decimal *);
+ void update_null_value () { (void) val_bool(); }
bool val_bool();
void top_level_item() { abort_on_null=1; }
inline bool is_top_level_item() { return abort_on_null; }