diff options
author | unknown <igor@rurik.mysql.com> | 2005-04-15 22:08:34 -0700 |
---|---|---|
committer | unknown <igor@rurik.mysql.com> | 2005-04-15 22:08:34 -0700 |
commit | d85fdc1b84a3e2c617578baf38ffcb568cf62f27 (patch) | |
tree | 343c2b9c6ac48d7e900ee9e1ce071b1f9d78389f /sql/item_subselect.h | |
parent | 2b92a78eb8b0c1874f5894c90eebdf1a6c8842f2 (diff) | |
download | mariadb-git-d85fdc1b84a3e2c617578baf38ffcb568cf62f27.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.
sql/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.
mysql-test/t/subselect.test:
Added a test case for bug #9516.
mysql-test/r/subselect.result:
Added a test case for bug #9516.
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; } |