Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
aed861fd
Commit
aed861fd
authored
Apr 21, 2006
by
ramil@production.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
into production.mysql.com:/usersnfs/rkalimullin/4.1.b18643
parents
5109b3ce
23988820
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
mysql-test/r/func_compress.result
mysql-test/r/func_compress.result
+7
-0
mysql-test/t/func_compress.test
mysql-test/t/func_compress.test
+9
-0
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-0
No files found.
mysql-test/r/func_compress.result
View file @
aed861fd
...
...
@@ -72,3 +72,10 @@ set @@max_allowed_packet=1048576*100;
select compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null;
compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null
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;
mysql-test/t/func_compress.test
View file @
aed861fd
...
...
@@ -45,4 +45,13 @@ set @@max_allowed_packet=1048576*100;
--
replace_result
"''"
XXX
"'1'"
XXX
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
sql/item_strfunc.cc
View file @
aed861fd
...
...
@@ -2850,6 +2850,7 @@ String *Item_func_uncompress::val_str(String *str)
if
(
!
res
)
goto
err
;
null_value
=
0
;
if
(
res
->
is_empty
())
return
res
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment