From 6082f484a3506ff673d75958ba45f138ff94d88d Mon Sep 17 00:00:00 2001 From: "mskold@mysql.com" <> Date: Tue, 20 Jul 2004 14:50:22 +0200 Subject: [PATCH] Added test for bug#4595 --- mysql-test/r/ndb_index_ordered.result | 9 +++++++++ mysql-test/t/ndb_index_ordered.test | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/mysql-test/r/ndb_index_ordered.result b/mysql-test/r/ndb_index_ordered.result index 0e3bd555b0a..c94d3ab6b96 100644 --- a/mysql-test/r/ndb_index_ordered.result +++ b/mysql-test/r/ndb_index_ordered.result @@ -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, diff --git a/mysql-test/t/ndb_index_ordered.test b/mysql-test/t/ndb_index_ordered.test index feb4476f5e7..782bbdffde0 100644 --- a/mysql-test/t/ndb_index_ordered.test +++ b/mysql-test/t/ndb_index_ordered.test @@ -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