diff options
author | unknown <ram@gw.mysql.r18.ru> | 2003-09-19 12:25:03 +0500 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2003-09-19 12:25:03 +0500 |
commit | 334b634c9f56280e1d57679d74d6a498e0254d7b (patch) | |
tree | cb9415d9811ed4cc317f2380d15ce8fd615bf2d3 /mysql-test | |
parent | 65aec56c57dd7eb1a6820d4270563c6967649365 (diff) | |
download | mariadb-git-334b634c9f56280e1d57679d74d6a498e0254d7b.tar.gz |
Fix for the bug #1333: COMPRESS(NULL) segfaults.
mysql-test/r/func_compress.result:
Test for the bug #1333: COMPRESS(NULL) segfaults.
mysql-test/t/func_compress.test:
Test for the bug #1333: COMPRESS(NULL) segfaults.
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/func_compress.result | 6 | ||||
-rw-r--r-- | mysql-test/t/func_compress.test | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/r/func_compress.result b/mysql-test/r/func_compress.result index c4d2eacf363..57eef44b3bb 100644 --- a/mysql-test/r/func_compress.result +++ b/mysql-test/r/func_compress.result @@ -40,3 +40,9 @@ uncompress(compress("")) select uncompressed_length(""); uncompressed_length("") 0 +select compress(NULL); +compress(NULL) +NULL +select uncompress(NULL); +uncompress(NULL) +NULL diff --git a/mysql-test/t/func_compress.test b/mysql-test/t/func_compress.test index 826721a4053..7462c020357 100644 --- a/mysql-test/t/func_compress.test +++ b/mysql-test/t/func_compress.test @@ -23,3 +23,9 @@ select uncompress(""); select uncompress(compress("")); select uncompressed_length(""); +# +# NULL (Bug #1333) +# + +select compress(NULL); +select uncompress(NULL); |