summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-11-01 10:33:44 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2022-11-01 10:33:44 +0100
commitebf2121529fcf06971b4c0fc28f40654ef8dd99f (patch)
tree420ddcc5b2aeae06a75224062e85ee8b1ffce504 /sql/item.cc
parent4b87d3628acf815836c0efc84fbcd878517d9b89 (diff)
parente0421b7cc8969edefca25c9a47e24f7e77c4bdf6 (diff)
downloadmariadb-git-ebf2121529fcf06971b4c0fc28f40654ef8dd99f.tar.gz
Merge branch '10.8' into 10.9
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 8bba7b65f2e..24cd62c1d44 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -3600,11 +3600,6 @@ void Item_field::fix_after_pullout(st_select_lex *new_parent, Item **ref,
/* just pull to the upper context */
ctx->outer_context= context->outer_context->outer_context;
}
- else
- {
- /* No upper context (merging Derived/VIEW where context chain ends) */
- ctx->outer_context= NULL;
- }
ctx->table_list= context->first_name_resolution_table;
ctx->select_lex= new_parent;
if (context->select_lex == NULL)
@@ -9918,6 +9913,8 @@ bool Item_trigger_field::set_value(THD *thd, sp_rcontext * /*ctx*/, Item **it)
Item *item= thd->sp_fix_func_item_for_assignment(field, it);
if (!item)
return true;
+ if (field->vers_sys_field())
+ return false;
// NOTE: field->table->copy_blobs should be false here, but let's
// remember the value at runtime to avoid subtle bugs.