summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2004-09-16 15:01:12 +0500
committerunknown <ram@gw.mysql.r18.ru>2004-09-16 15:01:12 +0500
commit16a46cc75b5b5f322282c6f6987b7d5370d6aa1d (patch)
tree0f28579d8819290e7513604b1bc4778a11ef0773
parent1afd5d4d3d7fa67ae25afecb129bcc093f61d890 (diff)
downloadmariadb-git-16a46cc75b5b5f322282c6f6987b7d5370d6aa1d.tar.gz
Clean-up. The length of compress() may depend on zlib version, etc.
mysql-test/r/func_compress.result: clean-up. The length of compress() may depend on zlib version, etc. mysql-test/t/func_compress.test: clean-up. The length of compress() may depend on zlib version, etc.
-rw-r--r--mysql-test/r/func_compress.result6
-rw-r--r--mysql-test/t/func_compress.test2
2 files changed, 4 insertions, 4 deletions
diff --git a/mysql-test/r/func_compress.result b/mysql-test/r/func_compress.result
index 4ff72d63144..11dbcca9431 100644
--- a/mysql-test/r/func_compress.result
+++ b/mysql-test/r/func_compress.result
@@ -69,6 +69,6 @@ Error 1259 ZLIB: Input data corrupted
Error 1256 Uncompressed data size too large; the maximum size is 1048576 (probably, length of uncompressed data was corrupted)
drop table t1;
set @@max_allowed_packet=1048576*100;
-select length(compress(repeat('aaaaaaaaaa', 10000000)));
-length(compress(repeat('aaaaaaaaaa', 10000000)))
-97214
+select compress(repeat('aaaaaaaaaa', 10000000)) is null;
+compress(repeat('aaaaaaaaaa', 10000000)) is null
+0
diff --git a/mysql-test/t/func_compress.test b/mysql-test/t/func_compress.test
index 1384ef27cd2..7b70289d2c0 100644
--- a/mysql-test/t/func_compress.test
+++ b/mysql-test/t/func_compress.test
@@ -41,4 +41,4 @@ drop table t1;
#
set @@max_allowed_packet=1048576*100;
-select length(compress(repeat('aaaaaaaaaa', 10000000)));
+select compress(repeat('aaaaaaaaaa', 10000000)) is null;