summaryrefslogtreecommitdiff
path: root/sql/item_row.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-07-02 13:12:18 +0300
committerunknown <bell@sanja.is.com.ua>2003-07-02 13:12:18 +0300
commit29898afbdd4fde10353695365eb4278ad4d005b7 (patch)
treedccd7660a069e46152b806a02d2f37652155410a /sql/item_row.cc
parent585cec056465764a3812e8d9396d8ca7d501637a (diff)
downloadmariadb-git-29898afbdd4fde10353695365eb4278ad4d005b7.tar.gz
Item tree iterator
fixed dependence of items from reduced subquery (SCRUM) sql/item.cc: fixed dependence of items from reduced subquery sql/item.h: fixed dependence of items from reduced subquery Item tree iterator sql/item_cmpfunc.cc: Item tree iterator sql/item_cmpfunc.h: Item tree iterator sql/item_func.cc: Item tree iterator sql/item_func.h: Item tree iterator sql/item_row.cc: Item tree iterator sql/item_row.h: Item tree iterator sql/item_strfunc.h: Item tree iterator sql/item_subselect.cc: Item tree iterator
Diffstat (limited to 'sql/item_row.cc')
-rw-r--r--sql/item_row.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/item_row.cc b/sql/item_row.cc
index 0eaad42873e..43e38763aa6 100644
--- a/sql/item_row.cc
+++ b/sql/item_row.cc
@@ -118,6 +118,16 @@ bool Item_row::check_cols(uint c)
return 0;
}
+bool Item_row::walk(Item_processor processor, byte *arg)
+{
+ for (uint i= 0; i < arg_count; i++)
+ {
+ if (items[i]->walk(processor, arg))
+ return 1;
+ }
+ return (this->*processor)(arg);
+}
+
void Item_row::bring_value()
{
for (uint i= 0; i < arg_count; i++)