summaryrefslogtreecommitdiff
path: root/mysql-test/t/case.test
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2002-12-24 14:33:11 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2002-12-24 14:33:11 +0200
commit8753e655d93f7616220132f13b8ea426e4f4cea7 (patch)
tree9970b0a50ab943bf9e955f1831290b932043417f /mysql-test/t/case.test
parentf0a3a93741724884b80f0eede0dac4074a24a25c (diff)
downloadmariadb-git-8753e655d93f7616220132f13b8ea426e4f4cea7.tar.gz
fix for an error in the merge from 3.23
Diffstat (limited to 'mysql-test/t/case.test')
-rw-r--r--mysql-test/t/case.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysql-test/t/case.test b/mysql-test/t/case.test
index f2b8d42e07c..b5a1a60f15b 100644
--- a/mysql-test/t/case.test
+++ b/mysql-test/t/case.test
@@ -30,8 +30,8 @@ insert into t1 values(1),(2),(3),(4);
select case a when 1 then 2 when 2 then 3 else 0 end as fcase, count(*) from t1 group by fcase;
select case a when 1 then "one" when 2 then "two" else "nothing" end as fcase, count(*) from t1 group by fcase;
drop table t1;
-drop table if exists t;
+drop table if exists t1;
create table t1 (row int not null, col int not null, val varchar(255) not null);
insert into t1 values (1,1,'orange'),(1,2,'large'),(2,1,'yellow'),(2,2,'medium'),(3,1,'green'),(3,2,'small');
select max(case col when 1 then val else null end) as color from t1 group by row;
-drop table if exists t;
+drop table if exists t1;