mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-5421 Assertion `! is_set()' fails on INSERT IGNORE when a table has no partition for a value
make print_no_partition_found() to respect MYF(errflag) mysql-test/suite/parts/t/insert_ignore-5421.test: mdev:5421
This commit is contained in:
9
mysql-test/suite/parts/r/insert_ignore-5421.result
Normal file
9
mysql-test/suite/parts/r/insert_ignore-5421.result
Normal file
@ -0,0 +1,9 @@
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM
|
||||
PARTITION BY RANGE (i) (
|
||||
PARTITION p00 VALUES LESS THAN (1),
|
||||
PARTITION p01 VALUES LESS THAN (2)
|
||||
);
|
||||
INSERT IGNORE INTO t1 VALUES (3);
|
||||
Warnings:
|
||||
Warning 1526 Table has no partition for value 3
|
||||
DROP TABLE t1;
|
12
mysql-test/suite/parts/t/insert_ignore-5421.test
Normal file
12
mysql-test/suite/parts/t/insert_ignore-5421.test
Normal file
@ -0,0 +1,12 @@
|
||||
#
|
||||
# MDEV-5421 Assertion `! is_set()' fails on INSERT IGNORE when a table has no partition for a value
|
||||
#
|
||||
|
||||
--source include/have_partition.inc
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM
|
||||
PARTITION BY RANGE (i) (
|
||||
PARTITION p00 VALUES LESS THAN (1),
|
||||
PARTITION p01 VALUES LESS THAN (2)
|
||||
);
|
||||
INSERT IGNORE INTO t1 VALUES (3);
|
||||
DROP TABLE t1;
|
Reference in New Issue
Block a user