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

Method c_ptr_safe

sql/sql_string.h:214–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212 return Ptr;
213 }
214 inline char *c_ptr_safe()
215 {
216 if (Ptr && str_length < Alloced_length)
217 Ptr[str_length]=0;
218 else
219 (void) realloc(str_length);
220 return Ptr;
221 }
222 LEX_STRING lex_string() const
223 {
224 LEX_STRING lex_string = { (char*) ptr(), length() };

Callers 6

val_strMethod · 0.80
get_localeMethod · 0.80
printMethod · 0.80
check_localeFunction · 0.80
mysql_sql_parseFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected