From 75bdeb1b21dca9266c077f9bade0e88bec716e9c Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 9 Apr 2003 20:50:30 -0400 Subject: added compress/uncompress function sql/mysql_priv.h: added have_compress variable sql/mysqld.cc: added have_compress variable sql/set_var.cc: added have_compress variable --- mysql-test/t/func_compress.test | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 mysql-test/t/func_compress.test (limited to 'mysql-test/t/func_compress.test') diff --git a/mysql-test/t/func_compress.test b/mysql-test/t/func_compress.test new file mode 100644 index 00000000000..2f86a414792 --- /dev/null +++ b/mysql-test/t/func_compress.test @@ -0,0 +1,20 @@ +-- source include/have_compress.inc +# +# Test for compress and uncompress functions: +# + +select @test_compress_string:='string for test compress function aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa '; +select length(@test_compress_string); + +select uncompress(compress(@test_compress_string)); +select uncompress(@test_compress_string); +select uncompressed_length(compress(@test_compress_string))=length(@test_compress_string); +select uncompressed_length(compress(@test_compress_string)); +select length(compress(@test_compress_string))