mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
Added test for bug#4595
This commit is contained in:
parent
9311492f1c
commit
6082f484a3
2 changed files with 11 additions and 1 deletions
|
@ -82,6 +82,15 @@ a b c
|
|||
4 5 12
|
||||
5 6 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;
|
||||
CREATE TABLE t1 (
|
||||
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;
|
||||
update t1 set c = 13 where b <= 3;
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue