diff options
Diffstat (limited to 'mysql-test/t/sel000031.test')
-rw-r--r-- | mysql-test/t/sel000031.test | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mysql-test/t/sel000031.test b/mysql-test/t/sel000031.test index 6024bd3b757..b1591ef3486 100644 --- a/mysql-test/t/sel000031.test +++ b/mysql-test/t/sel000031.test @@ -9,12 +9,12 @@ # ----------- # test for a bug with elt() and order by -drop table if exists elt_ck1,elt_ck2; -create table elt_ck1 (id int(10) not null unique); -create table elt_ck2 (id int(10) not null primary key, +drop table if exists t1,t2; +create table t1 (id int(10) not null unique); +create table t2 (id int(10) not null primary key, val int(10) not null); -insert into elt_ck1 values (1),(2),(4); -insert into elt_ck2 values (1,1),(2,1),(3,1),(4,2); - -@r/sel000031.result select one.id, elt(two.val,'one','two') from elt_ck1 one, elt_ck2 two where two.id=one.id order by one.id; +insert into t1 values (1),(2),(4); +insert into t2 values (1,1),(2,1),(3,1),(4,2); +@r/sel000031.result select one.id, elt(two.val,'one','two') from t1 one, t2 two where two.id=one.id order by one.id; +drop table t1,t2; |