diff options
author | igor@rurik.mysql.com <> | 2004-10-09 10:34:13 -0700 |
---|---|---|
committer | igor@rurik.mysql.com <> | 2004-10-09 10:34:13 -0700 |
commit | 71f6ab7a09fa8cb225315f74caae6b507af9a029 (patch) | |
tree | 84324c7af32f54d423310e3a2ee3255f7f43749b /sql/item_row.cc | |
parent | 80d2d8d662d9e3db96295d831358a5d633a3c2eb (diff) | |
parent | 0dcc255b9b64df1767091c438678049cc1acdd7e (diff) | |
download | mariadb-git-71f6ab7a09fa8cb225315f74caae6b507af9a029.tar.gz |
Merge for Item_equal.
Diffstat (limited to 'sql/item_row.cc')
-rw-r--r-- | sql/item_row.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/item_row.cc b/sql/item_row.cc index f6623e80734..8bf0d5061a7 100644 --- a/sql/item_row.cc +++ b/sql/item_row.cc @@ -145,6 +145,18 @@ bool Item_row::walk(Item_processor processor, byte *arg) return (this->*processor)(arg); } +Item *Item_row::transform(Item_transformer transformer, byte *arg) +{ + for (uint i= 0; i < arg_count; i++) + { + Item *new_item= items[i]->transform(transformer, arg); + if (!new_item) + return 0; + items[i]= new_item; + } + return (this->*transformer)(arg); +} + void Item_row::bring_value() { for (uint i= 0; i < arg_count; i++) |