diff options
author | serg@serg.mysql.com <> | 2000-12-11 14:09:31 +0100 |
---|---|---|
committer | serg@serg.mysql.com <> | 2000-12-11 14:09:31 +0100 |
commit | c6d55ae8d0995f71476503eb3d1891dfa2a8ec15 (patch) | |
tree | 1b2dc10daab96d2874b3b131078bf003e10ca094 /mysql-test/t/sel000031.test | |
parent | 3cf810222a9ac4be3c433cec68eb0ed8d4bb102c (diff) | |
download | mariadb-git-c6d55ae8d0995f71476503eb3d1891dfa2a8ec15.tar.gz |
Tests backpropagated from mysql-4.0 bk tree
Diffstat (limited to 'mysql-test/t/sel000031.test')
-rw-r--r-- | mysql-test/t/sel000031.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/t/sel000031.test b/mysql-test/t/sel000031.test new file mode 100644 index 00000000000..2aea31c492b --- /dev/null +++ b/mysql-test/t/sel000031.test @@ -0,0 +1,20 @@ +# 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/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; + |