Added test for bug#4595

This commit is contained in:
mskold@mysql.com 2004-07-20 14:50:22 +02:00
parent 9311492f1c
commit 6082f484a3
2 changed files with 11 additions and 1 deletions

View file

@ -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,

View file

@ -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