mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Added test for bug#4595
This commit is contained in:
@ -82,6 +82,15 @@ a b c
|
|||||||
4 5 12
|
4 5 12
|
||||||
5 6 12
|
5 6 12
|
||||||
6 7 12
|
6 7 12
|
||||||
|
update t1 set b = b + 1 where b > 4 and b < 7;
|
||||||
|
select * from t1 order by a;
|
||||||
|
a b c
|
||||||
|
1 2 13
|
||||||
|
2 3 13
|
||||||
|
3 4 12
|
||||||
|
4 6 12
|
||||||
|
5 7 12
|
||||||
|
6 7 12
|
||||||
drop table t1;
|
drop table t1;
|
||||||
CREATE TABLE t1 (
|
CREATE TABLE t1 (
|
||||||
a int unsigned NOT NULL PRIMARY KEY,
|
a int unsigned NOT NULL PRIMARY KEY,
|
||||||
|
@ -42,7 +42,8 @@ update t1 set c = 12 where b > 0;
|
|||||||
select * from t1 order by a;
|
select * from t1 order by a;
|
||||||
update t1 set c = 13 where b <= 3;
|
update t1 set c = 13 where b <= 3;
|
||||||
select * from t1 order by a;
|
select * from t1 order by a;
|
||||||
|
update t1 set b = b + 1 where b > 4 and b < 7;
|
||||||
|
select * from t1 order by a;
|
||||||
|
|
||||||
#
|
#
|
||||||
# Delete using ordered index scan
|
# Delete using ordered index scan
|
||||||
|
Reference in New Issue
Block a user