[Commits] d9a80ae193e: Code cleanup: thd->lex->current_select->context == s_lex here, so use s_lex
revision-id: d9a80ae193e6b94ecd470208bfa479cb7b48e7ee (mariadb-10.5.2-583-gd9a80ae193e) parent(s): 5cae53b4bde6b5736633a34eee5e509c0637f99e author: Sergei Petrunia committer: Sergei Petrunia timestamp: 2021-04-13 12:37:47 +0300 message: Code cleanup: thd->lex->current_select->context == s_lex here, so use s_lex --- sql/json_table.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sql/json_table.cc b/sql/json_table.cc index 000af50c391..5302fbd94c3 100644 --- a/sql/json_table.cc +++ b/sql/json_table.cc @@ -1044,12 +1044,12 @@ int Table_function_json_table::setup(THD *thd, TABLE_LIST *sql_table, { bool save_is_item_list_lookup; bool res; - save_is_item_list_lookup= thd->lex->current_select->is_item_list_lookup; - thd->lex->current_select->is_item_list_lookup= 0; + save_is_item_list_lookup= s_lex->is_item_list_lookup; + s_lex->is_item_list_lookup= 0; // Prepare the name resolution context. First, copy the context that is // used for name resolution of the WHERE clause - *m_context= thd->lex->current_select->context; + *m_context= s_lex->context; // Then, restrict it to only allow to refer to tables that come before the // table function reference @@ -1061,7 +1061,7 @@ int Table_function_json_table::setup(THD *thd, TABLE_LIST *sql_table, res= m_json->fix_fields_if_needed(thd, &m_json); - thd->lex->current_select->is_item_list_lookup= save_is_item_list_lookup; + s_lex->is_item_list_lookup= save_is_item_list_lookup; s_lex->set_non_agg_field_used(saved_non_agg_field_used); if (res)
participants (1)
-
psergey