| 3251 | |
| 3252 | #ifndef DBUG_OFF |
| 3253 | bool Sql_cmd_show_routine_code::execute(THD *thd) |
| 3254 | { |
| 3255 | sp_head *sp; |
| 3256 | if (m_handler->sp_cache_routine(thd, m_name, &sp)) |
| 3257 | return true; |
| 3258 | if (!sp || sp->show_routine_code(thd)) |
| 3259 | { |
| 3260 | /* We don't distinguish between errors for now */ |
| 3261 | my_error(ER_SP_DOES_NOT_EXIST, MYF(0), |
| 3262 | m_handler->type_str(), m_name->m_name.str); |
| 3263 | return true; |
| 3264 | } |
| 3265 | return false; |
| 3266 | } |
| 3267 | #endif // DBUG_OFF |
| 3268 | |
| 3269 |
no test coverage detected