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

Method reserve

sql/sql_string.cc:690–698  ·  view source on GitHub ↗

added by Holyfoot for "geometry" needs

Source from the content-addressed store, hash-verified

688
689// added by Holyfoot for "geometry" needs
690int String::reserve(uint32 space_needed, uint32 grow_by)
691{
692 if (Alloced_length < str_length + space_needed)
693 {
694 if (realloc(Alloced_length + max(space_needed, grow_by) - 1))
695 return TRUE;
696 }
697 return FALSE;
698}
699
700void String::qs_append(const char *str, uint32 len)
701{

Callers 7

append_identifierFunction · 0.45
append_nodeFunction · 0.45
printMethod · 0.45
val_strMethod · 0.45
append_query_stringFunction · 0.45
query_val_strMethod · 0.45
as_wktMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected