mariadb/tests
Dmitry Shulga 8b169949d6 MDEV-24411: Trigger doesn't work correctly with bulk insert
Executing an INSERT statement in PS mode having positional parameter
bound with an array could result in incorrect number of inserted rows
in case there is a BEFORE INSERT trigger that executes yet another
INSERT statement to put a copy of row being inserted into some table.

The reason for incorrect number of inserted rows is that a data structure
used for binding positional argument with its actual values is stored
in THD (this is thd->bulk_param) and reused on processing every INSERT
statement. It leads to consuming actual values bound with top-level
INSERT statement by other INSERT statements used by triggers' body.

To fix the issue, reset the thd->bulk_param temporary to the value nullptr
before invoking triggers and restore its value on finishing its execution.
2024-06-25 09:52:52 +07:00
..
code_quality All-green GitLab CI in 10.4 branch 2023-05-19 13:21:34 +01:00
async_queries.c Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
auto_increment.res
auto_increment.tst
big_record.pl
bug25714.c
check_async_queries.pl
CMakeLists.txt
connect_test.c
consistent_snapshot.pl
deadlock_test.c
drop_test.pl
export.pl
fork2_test.pl
fork_big.pl
fork_big2.pl
function.res
function.tst
grant.res
index_corrupt.pl
insert_and_repair.pl
insert_test.c
list_test.c
lock_test.pl
lock_test.res
mail_to_db.pl
myisam-big-rows.tst
mysql_client_fw.c Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
mysql_client_test.c MDEV-24411: Trigger doesn't work correctly with bulk insert 2024-06-25 09:52:52 +07:00
nonblock-wrappers.h
pmail.pl
rename_test.pl
restore-lock.smack
select_test.c
showdb_test.c
ssl_test.c
table_types.pl
test_delayed_insert.pl
thread_test.c MDEV-31461 mariadb SIGSEGV when built with -DCLIENT_PLUGIN_DIALOG=STATIC 2023-06-19 12:12:21 +02:00
truncate.pl