summaryrefslogtreecommitdiff
path: root/sql/item_row.h
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2010-05-31 10:43:34 +0200
committerunknown <knielsen@knielsen-hq.org>2010-05-31 10:43:34 +0200
commit0fc39acb8125fae95062e7b680b022b075a308c3 (patch)
treecf991484ab999e60eb9b33d81733fca16b368cf9 /sql/item_row.h
parente6eab96555d8cf70cbe6c8a94956855a0b5eca43 (diff)
parent80ba8556e772fd7e4eb369c64bb32ca44f93e221 (diff)
downloadmariadb-git-0fc39acb8125fae95062e7b680b022b075a308c3.tar.gz
Automerge MariaDB 5.1.47 release into main.
Diffstat (limited to 'sql/item_row.h')
-rw-r--r--sql/item_row.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/item_row.h b/sql/item_row.h
index 67441f49603..76d1c875e7d 100644
--- a/sql/item_row.h
+++ b/sql/item_row.h
@@ -16,7 +16,7 @@
class Item_row: public Item
{
Item **items;
- table_map used_tables_cache;
+ table_map used_tables_cache, not_null_tables_cache;
uint arg_count;
bool const_item_cache;
bool with_null;
@@ -26,6 +26,7 @@ public:
Item(),
items(item->items),
used_tables_cache(item->used_tables_cache),
+ not_null_tables_cache(0),
arg_count(item->arg_count),
const_item_cache(item->const_item_cache),
with_null(0)
@@ -65,6 +66,7 @@ public:
bool const_item() const { return const_item_cache; };
enum Item_result result_type() const { return ROW_RESULT; }
void update_used_tables();
+ table_map not_null_tables() const { return not_null_tables_cache; }
virtual void print(String *str, enum_query_type query_type);
bool walk(Item_processor processor, bool walk_subquery, uchar *arg);