mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge mysql.com:/usr_rh9/home/elkin.rh9/MySQL/BARE/4.1
into mysql.com:/usr_rh9/home/elkin.rh9/MySQL/Merge/5.0 mysql-test/t/func_compress.test: Auto merged sql/item_strfunc.cc: Auto merged
This commit is contained in:
@ -72,3 +72,10 @@ set @@max_allowed_packet=1048576*100;
|
|||||||
select compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null;
|
select compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null;
|
||||||
compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null
|
compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null
|
||||||
0
|
0
|
||||||
|
create table t1(a blob);
|
||||||
|
insert into t1 values(NULL), (compress('a'));
|
||||||
|
select uncompress(a), uncompressed_length(a) from t1;
|
||||||
|
uncompress(a) uncompressed_length(a)
|
||||||
|
NULL NULL
|
||||||
|
a 1
|
||||||
|
drop table t1;
|
||||||
|
@ -47,4 +47,13 @@ set @@max_allowed_packet=1048576*100;
|
|||||||
--replace_result "''" XXX "'1'" XXX
|
--replace_result "''" XXX "'1'" XXX
|
||||||
eval select compress(repeat('aaaaaaaaaa', IF('$LOW_MEMORY', 10, 10000000))) is null;
|
eval select compress(repeat('aaaaaaaaaa', IF('$LOW_MEMORY', 10, 10000000))) is null;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #18643: problem with null values
|
||||||
|
#
|
||||||
|
|
||||||
|
create table t1(a blob);
|
||||||
|
insert into t1 values(NULL), (compress('a'));
|
||||||
|
select uncompress(a), uncompressed_length(a) from t1;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
# End of 4.1 tests
|
# End of 4.1 tests
|
||||||
|
@ -2941,6 +2941,7 @@ String *Item_func_uncompress::val_str(String *str)
|
|||||||
|
|
||||||
if (!res)
|
if (!res)
|
||||||
goto err;
|
goto err;
|
||||||
|
null_value= 0;
|
||||||
if (res->is_empty())
|
if (res->is_empty())
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user