diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2017-09-14 22:22:21 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2017-09-14 22:22:21 +0200 |
commit | efd9e5f7c600f39ac6a0a993d3812a35065183da (patch) | |
tree | e6d2e8827ae45eee6c486e1549fc2ef2f061a9d1 /mysql-test/t/insert.test | |
parent | fa2701c6f7b028782cf231565f578b2fc0f10d51 (diff) | |
download | mariadb-git-bb-10.1-MDEV-13290.tar.gz |
MDEV-13290: Assertion Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' or `! is_set()' failedbb-10.1-MDEV-13290
Check error status which can be set by conversion procedures.
Diffstat (limited to 'mysql-test/t/insert.test')
-rw-r--r-- | mysql-test/t/insert.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/insert.test b/mysql-test/t/insert.test index 2d95dffa17a..f3277923001 100644 --- a/mysql-test/t/insert.test +++ b/mysql-test/t/insert.test @@ -573,3 +573,19 @@ insert ignore into t1 values (1,12) on duplicate key update f2=13; set @@old_mode=""; insert ignore into t1 values (1,12); DROP TABLE t1; + +--echo # +--echo # MDEV-13290 Assertion Assertion `!is_set() || (m_status == DA_OK_BULK +--echo # && is_bulk_op())' or `! is_set()' failed +--echo # + +SET sql_mode= 'STRICT_ALL_TABLES'; +CREATE TABLE t1 (f1 INT DEFAULT 0, f2 INT); +CREATE ALGORITHM = MERGE VIEW v1 AS SELECT f1, f2 FROM t1 WHERE f1 = '' WITH CHECK OPTION; + +--error ER_TRUNCATED_WRONG_VALUE +REPLACE INTO v1 SET f2 = 1; + +# Cleanup +DROP VIEW v1; +DROP TABLE t1; |