summaryrefslogtreecommitdiff
path: root/mysql-test/t/case.test
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2005-06-23 19:05:36 +0200
committerunknown <sergefp@mysql.com>2005-06-23 19:05:36 +0200
commit0021ec52c607ac2f87c8e2c6dfc0f89a711f608a (patch)
treee0afc2c296413ff6fa8f5eea640a265be1b2cc77 /mysql-test/t/case.test
parent309a7e679f4b75574949085abbd3ea56fafa33cb (diff)
parentef920b28793302a532b87b4babfc224bb732941e (diff)
downloadmariadb-git-0021ec52c607ac2f87c8e2c6dfc0f89a711f608a.tar.gz
Merge
mysql-test/r/case.result: SCCS merged mysql-test/t/case.test: SCCS merged sql/item_cmpfunc.cc: SCCS merged
Diffstat (limited to 'mysql-test/t/case.test')
-rw-r--r--mysql-test/t/case.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/case.test b/mysql-test/t/case.test
index f2cfce9085d..e942333d5fe 100644
--- a/mysql-test/t/case.test
+++ b/mysql-test/t/case.test
@@ -111,6 +111,17 @@ explain extended SELECT
SHOW CREATE TABLE t1;
DROP TABLE t1;
+# Test for BUG#10151
+SELECT 'case+union+test'
+UNION
+SELECT CASE LOWER('1') WHEN LOWER('2') THEN 'BUG' ELSE 'nobug' END;
+
+SELECT CASE LOWER('1') WHEN LOWER('2') THEN 'BUG' ELSE 'nobug' END;
+
+SELECT 'case+union+test'
+UNION
+SELECT CASE '1' WHEN '2' THEN 'BUG' ELSE 'nobug' END;
+
#
# Tests for bug #9939: conversion of the arguments for COALESCE and IFNULL
#