mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 11:57:38 +02:00
MDEV-18720 Assertion `inited==NONE' failed in ha_index_init upon update on versioned table with key on blob
* update system versioning fields before generaled columns * don't presume that ha_write_row() means INSERT. It could still be UPDATE * use the correct handler in check_duplicate_long_entry_key()
This commit is contained in:
parent
f78c0f6f00
commit
304f0084ef
4 changed files with 37 additions and 6 deletions
|
|
@ -33,3 +33,19 @@ Warnings:
|
|||
Warning 1265 Data truncated for column 't' at row 1
|
||||
Warning 1265 Data truncated for column 't' at row 2
|
||||
drop table t1;
|
||||
create table t1 ( pk int, f text, primary key (pk), unique(f)) with system versioning;
|
||||
insert into t1 values (1,'foo');
|
||||
update t1 set f = 'bar';
|
||||
select * from t1;
|
||||
pk f
|
||||
1 bar
|
||||
update t1 set f = 'foo';
|
||||
select * from t1;
|
||||
pk f
|
||||
1 foo
|
||||
select pk, f, row_end > DATE'2030-01-01' from t1 for system_time all;
|
||||
pk f row_end > DATE'2030-01-01'
|
||||
1 foo 1
|
||||
1 foo 0
|
||||
1 bar 0
|
||||
drop table t1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue