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
62e0f61e
Commit
62e0f61e
authored
Mar 27, 2009
by
Tatiana A. Nurnberg
Browse files
Options
Browse Files
Download
Plain Diff
auto-merge
parents
643138f2
93569301
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
13 additions
and
41 deletions
+13
-41
mysql-test/r/archive.result
mysql-test/r/archive.result
+0
-19
mysql-test/std_data/bug32880.ARN
mysql-test/std_data/bug32880.ARN
+0
-0
mysql-test/std_data/bug32880.ARZ
mysql-test/std_data/bug32880.ARZ
+0
-0
mysql-test/std_data/bug32880.frm
mysql-test/std_data/bug32880.frm
+0
-0
mysql-test/suite/funcs_1/r/processlist_priv_ps.result
mysql-test/suite/funcs_1/r/processlist_priv_ps.result
+2
-2
mysql-test/suite/funcs_1/r/processlist_val_ps.result
mysql-test/suite/funcs_1/r/processlist_val_ps.result
+1
-1
mysql-test/suite/rpl/r/rpl_loadfile.result
mysql-test/suite/rpl/r/rpl_loadfile.result
+1
-1
mysql-test/suite/rpl/t/rpl_loadfile.test
mysql-test/suite/rpl/t/rpl_loadfile.test
+1
-1
mysql-test/t/archive.test
mysql-test/t/archive.test
+0
-15
mysql-test/t/upgrade.test
mysql-test/t/upgrade.test
+3
-1
storage/archive/ha_archive.cc
storage/archive/ha_archive.cc
+5
-1
No files found.
mysql-test/r/archive.result
View file @
62e0f61e
...
@@ -12695,22 +12695,3 @@ a b
...
@@ -12695,22 +12695,3 @@ a b
1 NULL
1 NULL
2 NULL
2 NULL
DROP TABLE t1;
DROP TABLE t1;
#
# BUG#32880 - Repairing Archive table fails with internal error 144
#
# Test with an existing table which is corrupted
# Copy t1 from std_data
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` blob
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1
CHECK TABLE t1;
Table Op Msg_type Msg_text
test.t1 check error Corrupt
REPAIR TABLE t1;
Table Op Msg_type Msg_text
test.t1 repair error Corrupt
DROP TABLE t1;
mysql-test/std_data/bug32880.ARN
deleted
100644 → 0
View file @
643138f2
File deleted
mysql-test/std_data/bug32880.ARZ
deleted
100644 → 0
View file @
643138f2
File deleted
mysql-test/std_data/bug32880.frm
deleted
100644 → 0
View file @
643138f2
This diff was suppressed by a .gitattributes entry.
mysql-test/suite/funcs_1/r/processlist_priv_ps.result
View file @
62e0f61e
...
@@ -27,7 +27,7 @@ PROCESSLIST CREATE TEMPORARY TABLE `PROCESSLIST` (
...
@@ -27,7 +27,7 @@ PROCESSLIST CREATE TEMPORARY TABLE `PROCESSLIST` (
`HOST` varchar(64) NOT NULL DEFAULT '',
`HOST` varchar(64) NOT NULL DEFAULT '',
`DB` varchar(64) DEFAULT NULL,
`DB` varchar(64) DEFAULT NULL,
`COMMAND` varchar(16) NOT NULL DEFAULT '',
`COMMAND` varchar(16) NOT NULL DEFAULT '',
`TIME`
big
int(7) NOT NULL DEFAULT '0',
`TIME` int(7) NOT NULL DEFAULT '0',
`STATE` varchar(64) DEFAULT NULL,
`STATE` varchar(64) DEFAULT NULL,
`INFO` longtext
`INFO` longtext
) ENGINE=MyISAM DEFAULT CHARSET=utf8
) ENGINE=MyISAM DEFAULT CHARSET=utf8
...
@@ -97,7 +97,7 @@ PROCESSLIST CREATE TEMPORARY TABLE `PROCESSLIST` (
...
@@ -97,7 +97,7 @@ PROCESSLIST CREATE TEMPORARY TABLE `PROCESSLIST` (
`HOST` varchar(64) NOT NULL DEFAULT '',
`HOST` varchar(64) NOT NULL DEFAULT '',
`DB` varchar(64) DEFAULT NULL,
`DB` varchar(64) DEFAULT NULL,
`COMMAND` varchar(16) NOT NULL DEFAULT '',
`COMMAND` varchar(16) NOT NULL DEFAULT '',
`TIME`
big
int(7) NOT NULL DEFAULT '0',
`TIME` int(7) NOT NULL DEFAULT '0',
`STATE` varchar(64) DEFAULT NULL,
`STATE` varchar(64) DEFAULT NULL,
`INFO` longtext
`INFO` longtext
) ENGINE=MyISAM DEFAULT CHARSET=utf8
) ENGINE=MyISAM DEFAULT CHARSET=utf8
...
...
mysql-test/suite/funcs_1/r/processlist_val_ps.result
View file @
62e0f61e
...
@@ -17,7 +17,7 @@ PROCESSLIST CREATE TEMPORARY TABLE `PROCESSLIST` (
...
@@ -17,7 +17,7 @@ PROCESSLIST CREATE TEMPORARY TABLE `PROCESSLIST` (
`HOST` varchar(64) NOT NULL DEFAULT '',
`HOST` varchar(64) NOT NULL DEFAULT '',
`DB` varchar(64) DEFAULT NULL,
`DB` varchar(64) DEFAULT NULL,
`COMMAND` varchar(16) NOT NULL DEFAULT '',
`COMMAND` varchar(16) NOT NULL DEFAULT '',
`TIME`
big
int(7) NOT NULL DEFAULT '0',
`TIME` int(7) NOT NULL DEFAULT '0',
`STATE` varchar(64) DEFAULT NULL,
`STATE` varchar(64) DEFAULT NULL,
`INFO` longtext
`INFO` longtext
) ENGINE=MyISAM DEFAULT CHARSET=utf8
) ENGINE=MyISAM DEFAULT CHARSET=utf8
...
...
mysql-test/suite/rpl/r/rpl_loadfile.result
View file @
62e0f61e
...
@@ -233,7 +233,7 @@ include/start_slave.inc
...
@@ -233,7 +233,7 @@ include/start_slave.inc
SELECT repeat('x',20) INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug_39701.data';
SELECT repeat('x',20) INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug_39701.data';
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (t text);
CREATE TABLE t1 (t text);
CREATE PROCEDURE p(file
TEXT
)
CREATE PROCEDURE p(file
varchar(4096)
)
BEGIN
BEGIN
INSERT INTO t1 VALUES (LOAD_FILE(file));
INSERT INTO t1 VALUES (LOAD_FILE(file));
END|
END|
...
...
mysql-test/suite/rpl/t/rpl_loadfile.test
View file @
62e0f61e
...
@@ -73,7 +73,7 @@ enable_warnings;
...
@@ -73,7 +73,7 @@ enable_warnings;
CREATE
TABLE
t1
(
t
text
);
CREATE
TABLE
t1
(
t
text
);
DELIMITER
|
;
DELIMITER
|
;
CREATE
PROCEDURE
p
(
file
TEXT
)
CREATE
PROCEDURE
p
(
file
varchar
(
4096
)
)
BEGIN
BEGIN
INSERT
INTO
t1
VALUES
(
LOAD_FILE
(
file
));
INSERT
INTO
t1
VALUES
(
LOAD_FILE
(
file
));
END
|
END
|
...
...
mysql-test/t/archive.test
View file @
62e0f61e
...
@@ -1599,18 +1599,3 @@ INSERT INTO t1 VALUES (NULL, NULL),(NULL, NULL);
...
@@ -1599,18 +1599,3 @@ INSERT INTO t1 VALUES (NULL, NULL),(NULL, NULL);
FLUSH
TABLE
t1
;
FLUSH
TABLE
t1
;
SELECT
*
FROM
t1
ORDER
BY
a
;
SELECT
*
FROM
t1
ORDER
BY
a
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# BUG#32880 - Repairing Archive table fails with internal error 144
--
echo
#
--
echo
--
echo
# Test with an existing table which is corrupted
--
echo
# Copy t1 from std_data
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
copy_file
std_data
/
bug32880
.
frm
$MYSQLD_DATADIR
/
test
/
t1
.
frm
;
copy_file
std_data
/
bug32880
.
ARZ
$MYSQLD_DATADIR
/
test
/
t1
.
ARZ
;
copy_file
std_data
/
bug32880
.
ARN
$MYSQLD_DATADIR
/
test
/
t1
.
ARN
;
SHOW
CREATE
TABLE
t1
;
CHECK
TABLE
t1
;
REPAIR
TABLE
t1
;
DROP
TABLE
t1
;
mysql-test/t/upgrade.test
View file @
62e0f61e
...
@@ -53,7 +53,9 @@ drop table `txu#p#p1`;
...
@@ -53,7 +53,9 @@ drop table `txu#p#p1`;
#
#
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
system
cp
$MYSQL_TEST_DIR
/
std_data
/
old_table
-
323.
frm
$MYSQLD_DATADIR
/
test
/
t1
.
frm
;
--
error
0
,
1
--
remove_file
$MYSQLD_DATADIR
/
test
/
t1
.
frm
--
copy_file
std_data
/
old_table
-
323.
frm
$MYSQLD_DATADIR
/
test
/
t1
.
frm
truncate
t1
;
truncate
t1
;
drop
table
t1
;
drop
table
t1
;
...
...
storage/archive/ha_archive.cc
View file @
62e0f61e
...
@@ -1071,7 +1071,11 @@ int ha_archive::unpack_row(azio_stream *file_to_read, uchar *record)
...
@@ -1071,7 +1071,11 @@ int ha_archive::unpack_row(azio_stream *file_to_read, uchar *record)
row_len
=
uint4korr
(
size_buffer
);
row_len
=
uint4korr
(
size_buffer
);
DBUG_PRINT
(
"ha_archive"
,(
"Unpack row length %u -> %u"
,
row_len
,
DBUG_PRINT
(
"ha_archive"
,(
"Unpack row length %u -> %u"
,
row_len
,
(
unsigned
int
)
table
->
s
->
reclength
));
(
unsigned
int
)
table
->
s
->
reclength
));
fix_rec_buff
(
row_len
);
if
(
fix_rec_buff
(
row_len
))
{
DBUG_RETURN
(
HA_ERR_OUT_OF_MEM
);
}
DBUG_ASSERT
(
row_len
<=
record_buffer
->
length
);
DBUG_ASSERT
(
row_len
<=
record_buffer
->
length
);
read
=
azread
(
file_to_read
,
record_buffer
->
buffer
,
row_len
,
&
error
);
read
=
azread
(
file_to_read
,
record_buffer
->
buffer
,
row_len
,
&
error
);
...
...
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