mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
a1b03526fc
added two new test cases BitKeeper/etc/ignore: Added mysql-test/r/3.23/sel000004.result.reject mysql-test/var/lib/mysql-bin.006 mysql-test/var/lib/test/elt_ck1.frm mysql-test/var/lib/test/elt_ck1.MYD mysql-test/var/lib/test/elt_ck1.MYI mysql-test/var/lib/test/elt_ck2.frm mysql-test/var/lib/test/elt_ck2.MYD mysql-test/var/lib/test/elt_ck2.MYI to the ignore list mysql-test/r/3.23/sel000004.result: new result mysql-test/r/3.23/sel000005.result: new result sql/item_strfunc.cc: fixed bug in make_set() and elt()
21 lines
522 B
Text
21 lines
522 B
Text
# sel000004
|
|
#
|
|
# Versions
|
|
# --------
|
|
# 3.22
|
|
# 3.23
|
|
#
|
|
# Description
|
|
# -----------
|
|
# 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,
|
|
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/3.23/sel000004.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;
|
|
|