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
42b3d8c7
Commit
42b3d8c7
authored
May 21, 2009
by
Alexey Kopytov
Browse files
Options
Browse Files
Download
Plain Diff
Automerge.
parents
2e644e2b
645817dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
14 deletions
+3
-14
mysql-test/r/func_compress.result
mysql-test/r/func_compress.result
+0
-9
mysql-test/t/func_compress.test
mysql-test/t/func_compress.test
+3
-5
No files found.
mysql-test/r/func_compress.result
View file @
42b3d8c7
...
...
@@ -117,8 +117,6 @@ Warnings:
Error 1259 ZLIB: Input data corrupted
Error 1259 ZLIB: Input data corrupted
drop table t1;
SET @old_max_allowed_packet = @@max_allowed_packet;
SET @@max_allowed_packet = 1024 * 1024;
CREATE TABLE t1 (c1 INT);
INSERT INTO t1 VALUES (1), (1111), (11111);
SELECT UNCOMPRESS(c1), UNCOMPRESSED_LENGTH(c1) FROM t1;
...
...
@@ -126,13 +124,6 @@ UNCOMPRESS(c1) UNCOMPRESSED_LENGTH(c1)
NULL NULL
NULL NULL
NULL 825307441
Warnings:
Error 1259 ZLIB: Input data corrupted
Error 1259 ZLIB: Input data corrupted
Error 1259 ZLIB: Input data corrupted
Error 1259 ZLIB: Input data corrupted
Error 1256 Uncompressed data size too large; the maximum size is 1048576 (probably, length of uncompressed data was corrupted)
EXPLAIN EXTENDED SELECT * FROM (SELECT UNCOMPRESSED_LENGTH(c1) FROM t1) AS s;
SET @@max_allowed_packet = @old_max_allowed_packet;
DROP TABLE t1;
End of 5.0 tests
mysql-test/t/func_compress.test
View file @
42b3d8c7
...
...
@@ -94,21 +94,19 @@ drop table t1;
# uncompressed_length
#
SET
@
old_max_allowed_packet
=
@@
max_allowed_packet
;
SET
@@
max_allowed_packet
=
1024
*
1024
;
CREATE
TABLE
t1
(
c1
INT
);
INSERT
INTO
t1
VALUES
(
1
),
(
1111
),
(
11111
);
# Disable warnings to avoid dependency on max_allowed_packet value
--
disable_warnings
SELECT
UNCOMPRESS
(
c1
),
UNCOMPRESSED_LENGTH
(
c1
)
FROM
t1
;
--
enable_warnings
# We do not need the results, just make sure there are no valgrind errors
--
disable_result_log
EXPLAIN
EXTENDED
SELECT
*
FROM
(
SELECT
UNCOMPRESSED_LENGTH
(
c1
)
FROM
t1
)
AS
s
;
--
enable_result_log
SET
@@
max_allowed_packet
=
@
old_max_allowed_packet
;
DROP
TABLE
t1
;
--
echo
End
of
5.0
tests
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