Commit 49d6b187 authored by unknown's avatar unknown

Added test for bug#4595

parent e5c416e4
...@@ -82,6 +82,15 @@ a b c ...@@ -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; ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment