diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-02-28 18:13:28 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-02-28 18:13:28 +0400 |
commit | 0ad598a00b17008b0c0702db40948b14d7eee0d5 (patch) | |
tree | 4288555eee4e2fb9c427d8aa97ba762eb7c03b0f /sql/sql_load.cc | |
parent | c9b9d9f5152b2ec16e88c0b235d50420c52b41de (diff) | |
download | mariadb-git-0ad598a00b17008b0c0702db40948b14d7eee0d5.tar.gz |
A cleanup in derived table handling: removing duplicate code from st_select_lex::handle_derived()
st_select_lex::handle_derived() and mysql_handle_list_of_derived() had
exactly the same implementations.
- Adding a new method LEX::handle_list_of_derived() instead
- Removing public function mysql_handle_list_of_derived()
- Reusing LEX::handle_list_of_derived() in st_select_lex::handle_derived()
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r-- | sql/sql_load.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc index 113cbe1dac0..850360c1dba 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -235,7 +235,7 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list, DBUG_RETURN(TRUE); if (table_list->handle_derived(thd->lex, DT_MERGE_FOR_INSERT)) DBUG_RETURN(TRUE); - if (mysql_handle_list_of_derived(thd->lex, table_list, DT_PREPARE)) + if (thd->lex->handle_list_of_derived(table_list, DT_PREPARE)) DBUG_RETURN(TRUE); if (setup_tables_and_check_access(thd, &thd->lex->select_lex.context, &thd->lex->select_lex.top_join_list, |