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

Method append_parenthesized

sql/sql_string.cc:551–558  ·  view source on GitHub ↗

Append a parenthesized number to String. Used in various pieces of SHOW related code. @param nr Number @param radix Radix, optional parameter, 10 by default. */

Source from the content-addressed store, hash-verified

549 @param radix Radix, optional parameter, 10 by default.
550*/
551bool String::append_parenthesized(long nr, int radix)
552{
553 char buff[64], *end;
554 buff[0]= '(';
555 end= int10_to_str(nr, buff + 1, radix);
556 *end++ = ')';
557 return append(buff, (uint) (end - buff));
558}
559
560
561bool String::append_with_prefill(const char *s,uint32 arg_length,

Callers 2

printMethod · 0.80
printMethod · 0.80

Calls 1

int10_to_strFunction · 0.85

Tested by

no test coverage detected