| 10448 | |
| 10449 | |
| 10450 | bool LEX::call_statement_start(THD *thd, sp_name *name) |
| 10451 | { |
| 10452 | Database_qualified_name pkgname; |
| 10453 | const Sp_handler *sph= &sp_handler_procedure; |
| 10454 | sql_command= SQLCOM_CALL; |
| 10455 | value_list.empty(); |
| 10456 | |
| 10457 | thd->variables.path.resolve(thd, sphead, name, &sph, &pkgname); |
| 10458 | |
| 10459 | // Only add to used routines if we have a valid database name |
| 10460 | if (name->m_db.str) |
| 10461 | { |
| 10462 | sph->add_used_routine(this, thd, name); |
| 10463 | if (pkgname.m_name.length) |
| 10464 | sp_handler_package_body.add_used_routine(this, thd, &pkgname); |
| 10465 | } |
| 10466 | |
| 10467 | return !(m_sql_cmd= new (thd->mem_root) Sql_cmd_call(name, sph)); |
| 10468 | } |
| 10469 | |
| 10470 | |
| 10471 | bool LEX::call_statement_start(THD *thd, const Lex_ident_sys_st *name) |
nothing calls this directly
no test coverage detected