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

Method operator new

sql/sql_lex.h:477–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475 bool no_error; /* suppress error message (convert it to warnings) */
476
477 static void *operator new(size_t size) throw ()
478 {
479 return sql_alloc(size);
480 }
481 static void *operator new(size_t size, MEM_ROOT *mem_root) throw ()
482 { return (void*) alloc_root(mem_root, (uint) size); }
483 static void operator delete(void *ptr,size_t size) { TRASH(ptr, size); }

Callers

nothing calls this directly

Calls 2

sql_allocFunction · 0.85
alloc_rootFunction · 0.85

Tested by

no test coverage detected