summaryrefslogtreecommitdiff
path: root/mysql-test/t/3.23/sel000005.test
blob: 18541d5d69e3f1114a3f17f87c45e3c99640733b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# sel000004
#
# Versions
# --------
#   3.22
#   3.23
#
# Description
# -----------
# test for a bug with elt() 

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/sel000005.result select one.id, elt(two.val,'one','two') from elt_ck1 one, elt_ck2 two 
where two.id=one.id ;