mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-20074: Lost connection on update trigger
Instead of checking lex->sql_command which does not corect in case of triggers mark tables for insert.
This commit is contained in:
@@ -1985,7 +1985,8 @@ struct TABLE_LIST
|
||||
prelocking_types prelocking_type,
|
||||
TABLE_LIST *belong_to_view_arg,
|
||||
uint8 trg_event_map_arg,
|
||||
TABLE_LIST ***last_ptr)
|
||||
TABLE_LIST ***last_ptr,
|
||||
my_bool insert_data)
|
||||
|
||||
{
|
||||
init_one_table(db_arg, table_name_arg, alias_arg, lock_type_arg);
|
||||
@@ -2000,6 +2001,7 @@ struct TABLE_LIST
|
||||
**last_ptr= this;
|
||||
prev_global= *last_ptr;
|
||||
*last_ptr= &next_global;
|
||||
for_insert_data= insert_data;
|
||||
}
|
||||
|
||||
|
||||
@@ -2411,6 +2413,8 @@ struct TABLE_LIST
|
||||
/* System Versioning */
|
||||
vers_select_conds_t vers_conditions;
|
||||
|
||||
my_bool for_insert_data;
|
||||
|
||||
/**
|
||||
@brief
|
||||
Find the bottom in the chain of embedded table VIEWs.
|
||||
|
Reference in New Issue
Block a user