summaryrefslogtreecommitdiff
path: root/mysql-test/r/type_blob.result
diff options
context:
space:
mode:
authorGleb Shchepa <gleb.shchepa@oracle.com>2010-11-01 02:23:37 +0300
committerGleb Shchepa <gleb.shchepa@oracle.com>2010-11-01 02:23:37 +0300
commit71082fd17da8f58a092571debbf098d4427030be (patch)
tree59330b5cd7baa91abdfaefe4ea1c5482ff6dedc7 /mysql-test/r/type_blob.result
parentc4a4119829756aef666f2244f2e71d09a3bfd885 (diff)
parent20d704978ddb14dee414f40f28bd58f82b21711c (diff)
downloadmariadb-git-71082fd17da8f58a092571debbf098d4427030be.tar.gz
manual merge 5.1-bugteam --> 5.5-bugteam (bug 52160)
Diffstat (limited to 'mysql-test/r/type_blob.result')
-rw-r--r--mysql-test/r/type_blob.result10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/type_blob.result b/mysql-test/r/type_blob.result
index 78f31286ea7..e3363fcabf9 100644
--- a/mysql-test/r/type_blob.result
+++ b/mysql-test/r/type_blob.result
@@ -975,4 +975,14 @@ SELECT LENGTH(c) FROM t2;
LENGTH(c)
65535
DROP TABLE t1, t2;
+# Bug #52160: crash and inconsistent results when grouping
+# by a function and column
+CREATE FUNCTION f1() RETURNS TINYBLOB RETURN 1;
+CREATE TABLE t1(a CHAR(1));
+INSERT INTO t1 VALUES ('0'), ('0');
+SELECT COUNT(*) FROM t1 GROUP BY f1(), a;
+COUNT(*)
+2
+DROP FUNCTION f1;
+DROP TABLE t1;
End of 5.1 tests