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
cb0e660d
Commit
cb0e660d
authored
Mar 03, 2011
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Plain Diff
Merge.
parents
c4108ce3
54755c78
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
mysql-test/r/archive.result
mysql-test/r/archive.result
+16
-0
mysql-test/t/archive.test
mysql-test/t/archive.test
+15
-0
storage/archive/ha_archive.cc
storage/archive/ha_archive.cc
+1
-1
No files found.
mysql-test/r/archive.result
View file @
cb0e660d
...
...
@@ -12807,3 +12807,19 @@ DROP TABLE t1;
#
CREATE TABLE `a/../`(a INT) ENGINE=ARCHIVE;
DROP TABLE `a/../`;
#
# BUG#57162 - valgrind errors, random data when returning
# ordered data from archive tables
#
SET sort_buffer_size=32804;
CREATE TABLE t1(a INT, b CHAR(255), c CHAR(255), d CHAR(255),
e CHAR(255), f INT) ENGINE=ARCHIVE DEFAULT CHARSET utf8;
INSERT INTO t1 VALUES(-1,'b','c','d','e',1);
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT t1.* FROM t1,t1 t2,t1 t3,t1 t4,t1 t5,t1 t6;
SELECT * FROM t1 ORDER BY f LIMIT 1;
a b c d e f
-1 b c d e 1
DROP TABLE t1;
SET sort_buffer_size=DEFAULT;
mysql-test/t/archive.test
View file @
cb0e660d
...
...
@@ -1730,3 +1730,18 @@ DROP TABLE t1;
CREATE
TABLE
`a/../`
(
a
INT
)
ENGINE
=
ARCHIVE
;
remove_file
$MYSQLD_DATADIR
/
test
/
a
@
002
f
@
002
e
@
002
e
@
002
f
.
frm
;
DROP
TABLE
`a/../`
;
--
echo
#
--
echo
# BUG#57162 - valgrind errors, random data when returning
--
echo
# ordered data from archive tables
--
echo
#
SET
sort_buffer_size
=
32804
;
CREATE
TABLE
t1
(
a
INT
,
b
CHAR
(
255
),
c
CHAR
(
255
),
d
CHAR
(
255
),
e
CHAR
(
255
),
f
INT
)
ENGINE
=
ARCHIVE
DEFAULT
CHARSET
utf8
;
INSERT
INTO
t1
VALUES
(
-
1
,
'b'
,
'c'
,
'd'
,
'e'
,
1
);
INSERT
INTO
t1
SELECT
*
FROM
t1
;
INSERT
INTO
t1
SELECT
*
FROM
t1
;
INSERT
INTO
t1
SELECT
t1
.*
FROM
t1
,
t1
t2
,
t1
t3
,
t1
t4
,
t1
t5
,
t1
t6
;
SELECT
*
FROM
t1
ORDER
BY
f
LIMIT
1
;
DROP
TABLE
t1
;
SET
sort_buffer_size
=
DEFAULT
;
storage/archive/ha_archive.cc
View file @
cb0e660d
...
...
@@ -1179,7 +1179,7 @@ int ha_archive::unpack_row(azio_stream *file_to_read, uchar *record)
ptr
+=
table
->
s
->
null_bytes
;
for
(
Field
**
field
=
table
->
field
;
*
field
;
field
++
)
{
if
(
!
((
*
field
)
->
is_null
(
)))
if
(
!
((
*
field
)
->
is_null
_in_record
(
record
)))
{
ptr
=
(
*
field
)
->
unpack
(
record
+
(
*
field
)
->
offset
(
table
->
record
[
0
]),
ptr
);
}
...
...
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