| 29839 | */ |
| 29840 | |
| 29841 | void |
| 29842 | copy_fields(TMP_TABLE_PARAM *param) |
| 29843 | { |
| 29844 | Copy_field *ptr=param->copy_field; |
| 29845 | Copy_field *end=param->copy_field_end; |
| 29846 | |
| 29847 | DBUG_ASSERT((ptr != NULL && end >= ptr) || (ptr == NULL && end == NULL)); |
| 29848 | |
| 29849 | for (; ptr != end; ptr++) |
| 29850 | (*ptr->do_copy)(ptr); |
| 29851 | |
| 29852 | List_iterator_fast<Item> it(param->copy_funcs); |
| 29853 | Item_copy *item; |
| 29854 | while ((item= (Item_copy*) it++)) |
| 29855 | item->copy(); |
| 29856 | } |
| 29857 | |
| 29858 | |
| 29859 | /** |
no test coverage detected