[Commits] aa01f51bdef: Fix of feedback plugin.
revision-id: aa01f51bdef9cc38d8e0a75ea9e2788651e41d16 (mariadb-10.3.6-44-gaa01f51bdef) parent(s): 0e531581e01a493a767a233992d6c1c9b5597c8b author: Oleksandr Byelkin committer: Oleksandr Byelkin timestamp: 2018-07-06 16:26:19 +0200 message: Fix of feedback plugin. Assign "SELECT" to the table before it usage. --- plugin/feedback/sender_thread.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/feedback/sender_thread.cc b/plugin/feedback/sender_thread.cc index 92f186a1e2a..b025879b6ee 100644 --- a/plugin/feedback/sender_thread.cc +++ b/plugin/feedback/sender_thread.cc @@ -117,11 +117,12 @@ static int prepare_for_fill(TABLE_LIST *tables) tables->init_one_table(&INFORMATION_SCHEMA_NAME, &tbl_name, 0, TL_READ); tables->schema_table= i_s_feedback; + tables->select_lex= thd->lex->first_select_lex(); + DBUG_ASSERT(tables->select_lex); tables->table= create_schema_table(thd, tables); if (!tables->table) return 1; - tables->select_lex= thd->lex->current_select; tables->table->pos_in_table_list= tables; return 0;
participants (1)
-
Oleksandr Byelkin