MCPcopy Create free account
hub / github.com/MariaDB/server / init_sum_functions

Function init_sum_functions

sql/sql_select.cc:30298–30313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30296
30297
30298static bool
30299init_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
30316static bool

Callers 2

end_send_groupFunction · 0.85
end_write_groupFunction · 0.85

Calls 2

reset_and_addMethod · 0.80
aggregator_addMethod · 0.80

Tested by

no test coverage detected