mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
[SHOW] EXPLAIN UPDATE/DELETE, code re-structuring
- Merge with current 10.0-base
This commit is contained in:
@ -2491,6 +2491,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)
|
||||
{
|
||||
@ -3930,6 +3931,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