mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
f1e8696a45
sel000031.test backpropagated from mysql-4.0 sel000014.result backpropagated from mysql-4.0 sel000006.test s|r/3.23/|r/| sel000007.test s|r/3.23/|r/| sel000008.test s|r/3.23/|r/| sel000009.test s|r/3.23/|r/| sel000010.test s|r/3.23/|r/| sel000011.test s|r/3.23/|r/| sel000012.test s|r/3.23/|r/| sel000013.test s|r/3.23/|r/| sel000014.test s|r/3.23/|r/| sel000015.test s|r/3.23/|r/| sel000016.test s|r/3.23/|r/| sel000017.test s|r/3.23/|r/| sel000018.test s|r/3.23/|r/| sel000019.test s|r/3.23/|r/| sel000020.test s|r/3.23/|r/| sel000021.test s|r/3.23/|r/| sel000022.test s|r/3.23/|r/| sel000023.test s|r/3.23/|r/| sel000024.test s|r/3.23/|r/| sel000025.test s|r/3.23/|r/| sel000026.test s|r/3.23/|r/| sel000027.test s|r/3.23/|r/| sel000028.test s|r/3.23/|r/| sel000029.test s|r/3.23/|r/| sel000030.test s|r/3.23/|r/| sel000033.test s|r/3.23/|r/| sel000005.test s|r/3.23/|r/| ft0000001.test s|r/3.23/|r/| sel000004.test s|r/3.23/|r/|
20 lines
514 B
Text
20 lines
514 B
Text
# sel000031
|
|
#
|
|
# 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/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;
|
|
|