summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2005-01-11 13:36:27 +0100
committerunknown <joreland@mysql.com>2005-01-11 13:36:27 +0100
commit89866c543058e6c817444f250ee3c65adc2fb971 (patch)
tree51e3d7f4210cbb2d5170f24b0740f143e19da2d5 /mysql-test/t
parent194937169f340d35a36ef74def972e1699df477c (diff)
parentd73a4de9b7e7a6e73f5b8e71d6c5e8611adf53cd (diff)
downloadmariadb-git-89866c543058e6c817444f250ee3c65adc2fb971.tar.gz
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/jonas/src/mysql-4.1
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/ndb_index_ordered.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_index_ordered.test b/mysql-test/t/ndb_index_ordered.test
index 71635159604..89f1e5b7e9f 100644
--- a/mysql-test/t/ndb_index_ordered.test
+++ b/mysql-test/t/ndb_index_ordered.test
@@ -236,3 +236,21 @@ select count(*)-5 from t1 use index (ti) where ti < '10:11:11';
select count(*)-6 from t1 use index (ti) where ti <= '10:11:11';
select count(*)-8 from t1 use index (ti) where ti < '23:59:59';
select count(*)-9 from t1 use index (ti) where ti <= '23:59:59';
+
+drop table t1;
+
+# bug#7798
+create table t1(a int primary key, b int not null, index(b));
+insert into t1 values (1,1), (2,2);
+connect (con1,localhost,,,test);
+connect (con2,localhost,,,test);
+connection con1;
+set autocommit=0;
+begin;
+select count(*) from t1;
+connection con2;
+ALTER TABLE t1 ADD COLUMN c int;
+connection con1;
+select a from t1 where b = 2;
+show tables;
+drop table t1;