summaryrefslogtreecommitdiff
path: root/sql/item_row.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2003-07-02 13:12:18 +0300
committerbell@sanja.is.com.ua <>2003-07-02 13:12:18 +0300
commit2ae8a00b2a0e4bc11fb70f0161be34f1573a2f55 (patch)
treedccd7660a069e46152b806a02d2f37652155410a /sql/item_row.cc
parent5eaaf8e732b860195f0ffdf3f82d2064ef171b84 (diff)
downloadmariadb-git-2ae8a00b2a0e4bc11fb70f0161be34f1573a2f55.tar.gz
Item tree iterator
fixed dependence of items from reduced subquery (SCRUM)
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++)