diff options
author | igor@rurik.mysql.com <> | 2005-04-15 22:08:34 -0700 |
---|---|---|
committer | igor@rurik.mysql.com <> | 2005-04-15 22:08:34 -0700 |
commit | d92d4007f215e132c2279621b309e9f7ea45c346 (patch) | |
tree | 343c2b9c6ac48d7e900ee9e1ce071b1f9d78389f /sql/item_subselect.h | |
parent | 0f043429e43697bc8608530a203a9102ea9dd85c (diff) | |
download | mariadb-git-d92d4007f215e132c2279621b309e9f7ea45c346.tar.gz |
subselect.result, subselect.test:
Added a test case for bug #9516.
item_subselect.h:
Fixed bug #9516.
The bug was due to that fact that the class Item_subselect
inherited the generic implementation of the function
not_null_tables that was not valid for the objects
of this class. As a result evaluation of the
not_null_tables attribute was not correct for subqueries.
This caused invalid transformations of outer joins into
inner joins.
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r-- | sql/item_subselect.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h index 56864109a04..1a407c695b2 100644 --- a/sql/item_subselect.h +++ b/sql/item_subselect.h @@ -96,6 +96,7 @@ public: virtual bool exec(); virtual void fix_length_and_dec(); table_map used_tables() const; + table_map not_null_tables() const { return 0; } bool const_item() const; inline table_map get_used_tables_cache() { return used_tables_cache; } inline bool get_const_item_cache() { return const_item_cache; } |