summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_compress.test
diff options
context:
space:
mode:
authorserg@serg.mylan <>2003-10-12 15:16:45 +0200
committerserg@serg.mylan <>2003-10-12 15:16:45 +0200
commit32fed1e8774fa16e15f13e61f6594cdd69a2faa1 (patch)
treeb2e6caac84f47ab3a2646ad476043f5d6e6fdde5 /mysql-test/t/func_compress.test
parent54533936b1f0c03ad73a3b47f8c4fa5fb48b4178 (diff)
downloadmariadb-git-32fed1e8774fa16e15f13e61f6594cdd69a2faa1.tar.gz
wrong ER_TOO_BIG_FOR_UNCOMPRESS error in UNCOMPRESS() fixed.
typo in error message text corrected. new tests added
Diffstat (limited to 'mysql-test/t/func_compress.test')
-rw-r--r--mysql-test/t/func_compress.test10
1 files changed, 7 insertions, 3 deletions
diff --git a/mysql-test/t/func_compress.test b/mysql-test/t/func_compress.test
index 7462c020357..069fbed8562 100644
--- a/mysql-test/t/func_compress.test
+++ b/mysql-test/t/func_compress.test
@@ -24,8 +24,12 @@ select uncompress(compress(""));
select uncompressed_length("");
#
-# NULL (Bug #1333)
+# errors
#
-select compress(NULL);
-select uncompress(NULL);
+create table t1 (a text);
+insert t1 values (compress(null)), ('A\0\0\0BBBBBBBB'), (compress(space(50000))), (space(50000));
+select length(a) from t1;
+select length(uncompress(a)) from t1;
+drop table t1;
+