diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2018-07-06 16:26:19 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2018-07-06 16:26:19 +0200 |
commit | aa01f51bdef9cc38d8e0a75ea9e2788651e41d16 (patch) | |
tree | c595b6fbc94eade11dda6387547c83a3d36d9aa2 /plugin | |
parent | 0e531581e01a493a767a233992d6c1c9b5597c8b (diff) | |
download | mariadb-git-aa01f51bdef9cc38d8e0a75ea9e2788651e41d16.tar.gz |
Fix of feedback plugin.
Assign "SELECT" to the table before it usage.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/feedback/sender_thread.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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; |