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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f202c9d2
Commit
f202c9d2
authored
Oct 13, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into mysql.com:/usr/home/ram/work/bug23254/my50-bug23254
parents
665e5575
0ace2b44
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
mysql-test/r/func_compress.result
mysql-test/r/func_compress.result
+10
-0
mysql-test/t/func_compress.test
mysql-test/t/func_compress.test
+13
-1
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-0
No files found.
mysql-test/r/func_compress.result
View file @
f202c9d2
...
...
@@ -79,6 +79,16 @@ uncompress(a) uncompressed_length(a)
NULL NULL
a 1
drop table t1;
create table t1(a blob);
insert into t1 values ('0'), (NULL), ('0');
select compress(a), compress(a) from t1;
select compress(a) is null from t1;
compress(a) is null
0
1
0
drop table t1;
End of 4.1 tests
create table t1 (a varchar(32) not null);
insert into t1 values ('foo');
explain select * from t1 where uncompress(a) is null;
...
...
mysql-test/t/func_compress.test
View file @
f202c9d2
...
...
@@ -56,7 +56,19 @@ insert into t1 values(NULL), (compress('a'));
select
uncompress
(
a
),
uncompressed_length
(
a
)
from
t1
;
drop
table
t1
;
# End of 4.1 tests
#
# Bug #23254: problem with compress(NULL)
#
create
table
t1
(
a
blob
);
insert
into
t1
values
(
'0'
),
(
NULL
),
(
'0'
);
--
disable_result_log
select
compress
(
a
),
compress
(
a
)
from
t1
;
--
enable_result_log
select
compress
(
a
)
is
null
from
t1
;
drop
table
t1
;
--
echo
End
of
4.1
tests
#
# Bug #18539: uncompress(d) is null: impossible?
...
...
sql/item_strfunc.cc
View file @
f202c9d2
...
...
@@ -2965,6 +2965,7 @@ String *Item_func_compress::val_str(String *str)
null_value
=
1
;
return
0
;
}
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