| 30296 | |
| 30297 | |
| 30298 | static bool |
| 30299 | init_sum_functions(Item_sum **func_ptr, Item_sum **end_ptr) |
| 30300 | { |
| 30301 | for (; func_ptr != end_ptr ;func_ptr++) |
| 30302 | { |
| 30303 | if ((*func_ptr)->reset_and_add()) |
| 30304 | return 1; |
| 30305 | } |
| 30306 | /* If rollup, calculate the upper sum levels */ |
| 30307 | for ( ; *func_ptr ; func_ptr++) |
| 30308 | { |
| 30309 | if ((*func_ptr)->aggregator_add()) |
| 30310 | return 1; |
| 30311 | } |
| 30312 | return 0; |
| 30313 | } |
| 30314 | |
| 30315 | |
| 30316 | static bool |
no test coverage detected