MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_decimal_set_zero

Function my_decimal_set_zero

sql/my_decimal.h:317–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315
316
317inline
318int my_decimal_set_zero(my_decimal *d)
319{
320 /*
321 We need the up-cast here, since my_decimal has sign() member functions,
322 which conflicts with decimal_t::size
323 (and decimal_make_zero is a macro, rather than a funcion).
324 */
325 decimal_make_zero(static_cast<decimal_t*>(d));
326 return 0;
327}
328
329
330inline

Callers 2

init_common_variablesFunction · 0.85
val_decimalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected