diff options
author | aelkin@mysql.com <> | 2006-04-25 20:05:15 +0300 |
---|---|---|
committer | aelkin@mysql.com <> | 2006-04-25 20:05:15 +0300 |
commit | 3363effa526576a995f40cbdb7a404db116ae1e5 (patch) | |
tree | 96bcefe1c6d26a68dfcb4305fbf1b8de217283e4 /mysql-test/r/case.result | |
parent | f1374951c9c7f8ba28239cf87aee3e4216174022 (diff) | |
parent | 051e6ac9942a0438fdb89b7d4c7607ac8ef39581 (diff) | |
download | mariadb-git-3363effa526576a995f40cbdb7a404db116ae1e5.tar.gz |
Merge mysql.com:/home/elkin/MySQL/BARE/5.0
into mysql.com:/home/elkin/MySQL/MERGE/5.1-new
Diffstat (limited to 'mysql-test/r/case.result')
-rw-r--r-- | mysql-test/r/case.result | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/case.result b/mysql-test/r/case.result index d28c3af4e0b..9d2706f64fa 100644 --- a/mysql-test/r/case.result +++ b/mysql-test/r/case.result @@ -175,6 +175,14 @@ SELECT CASE '1' WHEN '2' THEN 'BUG' ELSE 'nobug' END; case+union+test case+union+test nobug +create table t1(a float, b int default 3); +insert into t1 (a) values (2), (11), (8); +select min(a), min(case when 1=1 then a else NULL end), +min(case when 1!=1 then NULL else a end) +from t1 where b=3 group by b; +min(a) min(case when 1=1 then a else NULL end) min(case when 1!=1 then NULL else a end) +2 2 2 +drop table t1; CREATE TABLE t1 (EMPNUM INT); INSERT INTO t1 VALUES (0), (2); CREATE TABLE t2 (EMPNUM DECIMAL (4, 2)); |