1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-28978 Assertion failure in THD::binlog_query or unexpected

ER_ERROR_ON_WRITE with auto-partitioning

Added check whether binlogging is enabled before doing binlog_query().
This commit is contained in:
Aleksey Midenkov
2022-07-05 12:55:10 +03:00
parent f88511647a
commit 2b9fb342cf
3 changed files with 21 additions and 2 deletions

View File

@@ -3257,4 +3257,13 @@ delete from t partition (px);
ERROR HY000: Unknown partition 'px' in table 't'
unlock tables;
drop table t;
#
# MDEV-28978 Assertion failure in THD::binlog_query or unexpected
# ER_ERROR_ON_WRITE with auto-partitioning
#
create table t (a int) with system versioning partition by system_time limit 6 auto;
insert into t () values (),(),(),(),(),();
update t set a = 1;
update t set a = 2 limit 0;
drop table t;
set global innodb_stats_persistent= @save_persistent;