mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
[SHOW] EXPLAIN UPDATE/DELETE, code re-structuring
- Merge with 10.0-base
This commit is contained in:
@ -2488,6 +2488,7 @@ void reinit_stmt_before_use(THD *thd, LEX *lex)
|
||||
object and because of this can be used in different threads.
|
||||
*/
|
||||
lex->thd= thd;
|
||||
DBUG_ASSERT(!lex->query_plan_footprint);
|
||||
|
||||
if (lex->empty_field_list_on_rset)
|
||||
{
|
||||
@ -3927,6 +3928,8 @@ bool Prepared_statement::execute(String *expanded_query, bool open_cursor)
|
||||
|
||||
if (! cursor)
|
||||
cleanup_stmt();
|
||||
//psergey: TODO the "EXECUTE problem" is here
|
||||
delete_qpf_query(thd->lex);
|
||||
|
||||
thd->set_statement(&stmt_backup);
|
||||
thd->stmt_arena= old_stmt_arena;
|
||||
|
Reference in New Issue
Block a user