Merge branch '10.5' into 10.6

This commit is contained in:
Sergei Golubchik 2025-01-29 11:17:38 +01:00
commit 066e8d6aea
177 changed files with 3874 additions and 972 deletions

View file

@ -952,8 +952,7 @@ bool mysql_insert(THD *thd, TABLE_LIST *table_list,
if (fields.elements || !value_count || table_list->view != 0)
{
if (table->triggers &&
table->triggers->has_triggers(TRG_EVENT_INSERT, TRG_ACTION_BEFORE))
if (table->field != table->field_to_fill())
{
/* BEFORE INSERT triggers exist, the check will be done later, per row */
}
@ -2432,6 +2431,7 @@ public:
delayed_insert_threads--;
my_free(thd.query());
thd.reset_query_inner();
thd.security_ctx->user= 0;
thd.security_ctx->host= 0;
}