sel000031.test
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:0k
- # sel000031
- #
- # Versions
- # --------
- # 3.22
- # 3.23
- #
- # Description
- # -----------
- # test for a bug with elt() and order by
- 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 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;