mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 11:15:33 +02:00
Deriving Item_row from Item_args and sharing more code
between Item_func, Item_sum, Item_row.
This commit is contained in:
parent
c2dd88ac85
commit
04fb09d781
7 changed files with 75 additions and 130 deletions
|
|
@ -497,22 +497,6 @@ Item *Item_sum::get_tmp_table_item(THD *thd)
|
|||
}
|
||||
|
||||
|
||||
bool Item_sum::walk (Item_processor processor, bool walk_subquery,
|
||||
uchar *argument)
|
||||
{
|
||||
if (arg_count)
|
||||
{
|
||||
Item **arg,**arg_end;
|
||||
for (arg= args, arg_end= args+arg_count; arg != arg_end; arg++)
|
||||
{
|
||||
if ((*arg)->walk(processor, walk_subquery, argument))
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return (this->*processor)(argument);
|
||||
}
|
||||
|
||||
|
||||
Field *Item_sum::create_tmp_field(bool group, TABLE *table,
|
||||
uint convert_blob_length)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue