diff options
author | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2020-09-17 19:03:02 +0530 |
---|---|---|
committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2020-09-22 17:12:57 +0530 |
commit | 1060cc4235a5f5b9e5f5fc040e3373819f115b04 (patch) | |
tree | 2dfc9cb7f70a4c92b46e1eee7fd7ccd3629bf80a /mysql-test/t/update.test | |
parent | 80075ba011fb1b90aaf349a17a6f94145c5c8864 (diff) | |
download | mariadb-git-bb-10.2-MDEV-23500.tar.gz |
MDEV-23500: Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())'bb-10.2-MDEV-23500
failed in Diagnostics_area::set_ok_status upon multi-table update
Analysis: When NULL field is copied to NOT-NULL so there is error but
this error is not reported so we get the failure.
Fix: Return the error state.
Diffstat (limited to 'mysql-test/t/update.test')
-rw-r--r-- | mysql-test/t/update.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/update.test b/mysql-test/t/update.test index 84709102f96..3a56e7b4ef0 100644 --- a/mysql-test/t/update.test +++ b/mysql-test/t/update.test @@ -672,4 +672,18 @@ UPDATE t1,t2 SET t1.i1 = -39 WHERE t2.d1 <> t1.i1 AND t2.d1 = t1.d2; DROP TABLE t1,t2; +--echo # +--echo # MDEV-23500: Assertion `!is_set() || (m_status == DA_OK_BULK && +--echo # is_bulk_op())' failed in Diagnostics_area::set_ok_status upon +--echo # multi-table update +--echo # + +CREATE TABLE t (f INT NOT NULL); +INSERT INTO t VALUES (0),(0); + +--error WARN_DATA_TRUNCATED +UPDATE t AS t1 LEFT JOIN t AS t2 ON t1.f <=> t2.f SET t2.f = NULL; + +DROP TABLE t; + --echo # End of MariaDB 10.2 tests |