summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2019-08-27 15:54:45 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2019-08-27 15:54:45 +0200
commit489c4c66b1506478c01ed744645fa67f20d427c5 (patch)
tree2d87653818aa09999e4611c415a59a0a449535f2
parent1fbbaa079c65326d55158dbdeec99d4326f17f07 (diff)
downloadmariadb-git-10.5-MDEV-5816.tar.gz
-rw-r--r--sql/sp_head.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h
index af93edb976a..800db97a8c1 100644
--- a/sql/sp_head.h
+++ b/sql/sp_head.h
@@ -1004,7 +1004,9 @@ public:
*/
sp_lex_cursor(THD *thd, const LEX *oldlex)
:sp_lex_local(thd, oldlex)
- { }
+ {
+ mem_root->name= "CURSOR lex";
+ }
~sp_lex_cursor() { }
void cleanup_stmt() { }
Query_arena *query_arena() { return this; }
@@ -1023,8 +1025,8 @@ public:
if (validate())
return true;
sp_lex_in_use= true;
- free_list= thd->free_list;
- thd->free_list= NULL;
+ //free_list= thd->free_list;
+ //thd->free_list= NULL;
return false;
}
};