mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-31030 Assertion `!error' failed in ha_partition::update_row on UPDATE
Removing wrong assertion as division by zero was caused by valid input.
This commit is contained in:
@@ -3068,3 +3068,19 @@ set optimizer_switch=@tmp_os;
|
||||
|
||||
drop table t1,t2,t3;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-31030 Assertion `!error' failed in ha_partition::update_row on UPDATE
|
||||
--echo #
|
||||
|
||||
create table t (c int)
|
||||
partition by list (1 div c) (
|
||||
partition p0 values in (null),
|
||||
partition p values in (1));
|
||||
insert ignore into t values (0), (1), (0);
|
||||
--error ER_NO_PARTITION_FOR_GIVEN_VALUE
|
||||
update t set c= 2;
|
||||
--disable_warnings
|
||||
update ignore t set c= 3;
|
||||
--enable_warnings
|
||||
select * from t;
|
||||
drop table t;
|
||||
|
Reference in New Issue
Block a user