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

Function dbug_decimal_as_string

sql/my_decimal.cc:384–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382
383
384const char *dbug_decimal_as_string(char *buff, const my_decimal *val)
385{
386 int length= DECIMAL_MAX_STR_LENGTH + 1; /* minimum size for buff */
387 if (!val)
388 return "NULL";
389 (void)decimal2string((decimal_t*) val, buff, &length, 0,0,0);
390 return buff;
391}
392
393#endif /*DBUG_OFF*/
394

Callers

nothing calls this directly

Calls 1

decimal2stringFunction · 0.85

Tested by

no test coverage detected