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
9f308f67
Commit
9f308f67
authored
Jul 17, 2006
by
jimw@rama.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0-maint
into rama.(none):/home/jimw/my/mysql-5.0-18539
parents
0af88d0e
9c18b575
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
1 deletion
+43
-1
mysql-test/r/func_compress.result
mysql-test/r/func_compress.result
+28
-0
mysql-test/t/func_compress.test
mysql-test/t/func_compress.test
+14
-0
sql/item_strfunc.h
sql/item_strfunc.h
+1
-1
No files found.
mysql-test/r/func_compress.result
View file @
9f308f67
...
@@ -79,3 +79,31 @@ uncompress(a) uncompressed_length(a)
...
@@ -79,3 +79,31 @@ uncompress(a) uncompressed_length(a)
NULL NULL
NULL NULL
a 1
a 1
drop table t1;
drop table t1;
create table t1 (a varchar(32) not null);
insert into t1 values ('foo');
explain select * from t1 where uncompress(a) is null;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 system NULL NULL NULL NULL 1
Warnings:
Error 1256 Uncompressed data size too large; the maximum size is 104857600 (probably, length of uncompressed data was corrupted)
select * from t1 where uncompress(a) is null;
a
foo
Warnings:
Error 1256 Uncompressed data size too large; the maximum size is 104857600 (probably, length of uncompressed data was corrupted)
explain select *, uncompress(a) from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 system NULL NULL NULL NULL 1
select *, uncompress(a) from t1;
a uncompress(a)
foo NULL
Warnings:
Error 1256 Uncompressed data size too large; the maximum size is 104857600 (probably, length of uncompressed data was corrupted)
select *, uncompress(a), uncompress(a) is null from t1;
a uncompress(a) uncompress(a) is null
foo NULL 1
Warnings:
Error 1256 Uncompressed data size too large; the maximum size is 104857600 (probably, length of uncompressed data was corrupted)
Error 1256 Uncompressed data size too large; the maximum size is 104857600 (probably, length of uncompressed data was corrupted)
drop table t1;
End of 5.0 tests
mysql-test/t/func_compress.test
View file @
9f308f67
...
@@ -57,3 +57,17 @@ select uncompress(a), uncompressed_length(a) from t1;
...
@@ -57,3 +57,17 @@ select uncompress(a), uncompressed_length(a) from t1;
drop
table
t1
;
drop
table
t1
;
# End of 4.1 tests
# End of 4.1 tests
#
# Bug #18539: uncompress(d) is null: impossible?
#
create
table
t1
(
a
varchar
(
32
)
not
null
);
insert
into
t1
values
(
'foo'
);
explain
select
*
from
t1
where
uncompress
(
a
)
is
null
;
select
*
from
t1
where
uncompress
(
a
)
is
null
;
explain
select
*
,
uncompress
(
a
)
from
t1
;
select
*
,
uncompress
(
a
)
from
t1
;
select
*
,
uncompress
(
a
),
uncompress
(
a
)
is
null
from
t1
;
drop
table
t1
;
--
echo
End
of
5.0
tests
sql/item_strfunc.h
View file @
9f308f67
...
@@ -803,7 +803,7 @@ class Item_func_uncompress: public Item_str_func
...
@@ -803,7 +803,7 @@ class Item_func_uncompress: public Item_str_func
String
buffer
;
String
buffer
;
public:
public:
Item_func_uncompress
(
Item
*
a
)
:
Item_str_func
(
a
){}
Item_func_uncompress
(
Item
*
a
)
:
Item_str_func
(
a
){}
void
fix_length_and_dec
(){
max_length
=
MAX_BLOB_WIDTH
;
}
void
fix_length_and_dec
(){
maybe_null
=
1
;
max_length
=
MAX_BLOB_WIDTH
;
}
const
char
*
func_name
()
const
{
return
"uncompress"
;}
const
char
*
func_name
()
const
{
return
"uncompress"
;}
String
*
val_str
(
String
*
)
ZLIB_DEPENDED_FUNCTION
String
*
val_str
(
String
*
)
ZLIB_DEPENDED_FUNCTION
};
};
...
...
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