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

Method add_cursor

sql/sp_pcontext.cc:419–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417
418
419bool sp_pcontext::add_cursor(LEX_STRING name)
420{
421 if (m_cursors.elements() == (int) m_max_cursor_index)
422 ++m_max_cursor_index;
423
424 return m_cursors.append(name);
425}
426
427
428bool sp_pcontext::find_cursor(LEX_STRING name,

Callers

nothing calls this directly

Calls 2

elementsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected