summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_compress.test
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2004-09-13 18:43:59 +0500
committerunknown <ram@gw.mysql.r18.ru>2004-09-13 18:43:59 +0500
commit61e6211646b14a362468b5d26852964208a9d596 (patch)
tree97f19b42f2ec23bb89b1aefe61430cb1b1998163 /mysql-test/t/func_compress.test
parent736963b5e06ecd2ea98688309d19d30f8252784a (diff)
downloadmariadb-git-61e6211646b14a362468b5d26852964208a9d596.tar.gz
A fix (bug #5497: COMPRESS() returns NULL for large strings).
Diffstat (limited to 'mysql-test/t/func_compress.test')
-rw-r--r--mysql-test/t/func_compress.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/func_compress.test b/mysql-test/t/func_compress.test
index 79de99276a6..1384ef27cd2 100644
--- a/mysql-test/t/func_compress.test
+++ b/mysql-test/t/func_compress.test
@@ -35,3 +35,10 @@ select length(a) from t1;
select length(uncompress(a)) from t1;
drop table t1;
+
+#
+# Bug #5497: a problem with large strings
+#
+
+set @@max_allowed_packet=1048576*100;
+select length(compress(repeat('aaaaaaaaaa', 10000000)));