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

Method check_duplicate_handler

sql/sp_pcontext.cc:288–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286
287
288bool sp_pcontext::check_duplicate_handler(
289 const sp_condition_value *cond_value) const
290{
291 for (int i= 0; i < m_handlers.elements(); ++i)
292 {
293 sp_handler *h= m_handlers.at(i);
294
295 List_iterator_fast<sp_condition_value> li(h->condition_values);
296 sp_condition_value *cv;
297
298 while ((cv= li++))
299 {
300 if (cond_value->equals(cv))
301 return true;
302 }
303 }
304
305 return false;
306}
307
308
309sp_handler*

Callers

nothing calls this directly

Calls 2

elementsMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected