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_insert.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_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 809059093c2..ba8134bfaf1 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -1404,7 +1404,7 @@ bool mysql_prepare_insert(THD *thd, 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); /* For subqueries in VALUES() we should not see the table in which we are |