| 286 | |
| 287 | |
| 288 | bool 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 | |
| 309 | sp_handler* |