diff options
author | Igor Babaev <igor@askmonty.org> | 2011-07-13 21:06:28 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-07-13 21:06:28 -0700 |
commit | ff9c406c1d3ac007d0079a4ef16d86b7a8b823bb (patch) | |
tree | 0cbb52268a50c48149f87834ebb0b1e3e1d2fd39 /sql/item_row.h | |
parent | 7c46dc525e65ce2cde71a9591fc780f44bebc384 (diff) | |
download | mariadb-git-ff9c406c1d3ac007d0079a4ef16d86b7a8b823bb.tar.gz |
Fixed LP bug #809179.
The attribute not_null_tables could be calculated incorrectly in the
function SELECT_LEX::update_used_tables for queries over views
with row items in the WHERE clause. It happened because no
implementation of the virtual callback function eval_not_null_tables
was provided for the class Item_row.
Also slightly optimized the code calculating the value of the maybe_null
flag for tables in the function SELECT_LEX::update_used_tables.
Diffstat (limited to 'sql/item_row.h')
-rw-r--r-- | sql/item_row.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_row.h b/sql/item_row.h index 0b43309391d..1572ef77b79 100644 --- a/sql/item_row.h +++ b/sql/item_row.h @@ -73,6 +73,7 @@ public: bool walk(Item_processor processor, bool walk_subquery, uchar *arg); Item *transform(Item_transformer transformer, uchar *arg); + bool eval_not_null_tables(uchar *opt_arg); uint cols() { return arg_count; } Item* element_index(uint i) { return items[i]; } |