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

Function parse_escaped_string

sql/parse_file.cc:448–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446
447
448const char *
449parse_escaped_string(const char *ptr, const char *end, MEM_ROOT *mem_root,
450 LEX_STRING *str)
451{
452 const char *eol= strchr(ptr, '\n');
453
454 if (eol == 0 || eol >= end ||
455 !(str->str= (char*) alloc_root(mem_root, (eol - ptr) + 1)) ||
456 read_escaped_string(ptr, eol, str))
457 return 0;
458
459 return eol+1;
460}
461
462
463/**

Callers 1

parseMethod · 0.85

Calls 2

alloc_rootFunction · 0.85
read_escaped_stringFunction · 0.85

Tested by

no test coverage detected