[MDEV-18957] UPDATE with LIMIT clause is wrong for versioned partitioned tables Created: 2019-03-18  Updated: 2019-11-22  Resolved: 2019-06-18

Status: Closed
Project: MariaDB Server
Component/s: Data Manipulation - Update, Partitioning, Versioned Tables
Affects Version/s: 10.3, 10.4
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Aleksey Midenkov Assignee: Aleksey Midenkov
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-18727 System Versioning: optimize DML opera... Closed
Relates
relates to MDEV-18734 ASAN heap-use-after-free upon sorting... Closed

 Description   

Reproduce

create or replace table t1 (
  x int,
  a varchar(255)
) with system versioning partition by system_time (partition p1 history, partition pn current);
 
insert into t1 (x) values (1), (2), (3), (4);
update t1 set a= 'foo' limit 3;
update t1 set a= 'bar' limit 4;
select * from t1;

Result

+------+------+
| x    | a    |
+------+------+
|    1 | bar  |
|    2 | foo  |
|    3 | foo  |
|    4 | NULL |
+------+------+

Expected

+------+------+
| x    | a    |
+------+------+
|    1 | bar  |
|    2 | bar  |
|    3 | bar  |
|    4 | bar  |
+------+------+



 Comments   
Comment by Aleksey Midenkov [ 2019-03-18 ]

Fixed by MDEV-18727

Comment by Sergei Golubchik [ 2019-06-07 ]

midenok, should I just close it as a duplicate? If I understand correctly, there is no separate patch to review.

Comment by Aleksey Midenkov [ 2019-06-18 ]

serg, good point. I'm closing it as a duplicate and requesting MDEV-18727 for review.

Generated at Thu Feb 08 08:48:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.