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
3069530f
Commit
3069530f
authored
Jul 12, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
archive.test and others
parent
beb36f6c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
48 deletions
+25
-48
mysql-test/r/func_rollback.result
mysql-test/r/func_rollback.result
+0
-4
mysql-test/r/sp.result
mysql-test/r/sp.result
+0
-16
mysql-test/r/view_grant.result
mysql-test/r/view_grant.result
+0
-8
mysql-test/suite/archive/archive.result
mysql-test/suite/archive/archive.result
+16
-13
mysql-test/suite/archive/archive.test
mysql-test/suite/archive/archive.test
+9
-7
No files found.
mysql-test/r/func_rollback.result
View file @
3069530f
...
...
@@ -190,8 +190,6 @@ END;
SELECT f1_insert_select(2);
f1_insert_select(2)
1
Warnings:
Warning 1048 Column 'f2' cannot be null
SELECT * FROM t1_not_null ORDER BY f1,f2;
f1 f2
2 0
...
...
@@ -267,8 +265,6 @@ END;
SELECT f1_insert_with_two_rows();
f1_insert_with_two_rows()
1
Warnings:
Warning 1048 Column 'f2' cannot be null
SELECT * FROM t1_not_null ORDER BY f1,f2;
f1 f2
10 0
...
...
mysql-test/r/sp.result
View file @
3069530f
...
...
@@ -5427,13 +5427,9 @@ end|
select func_20028_a()|
func_20028_a()
0
Warnings:
Warning 1329 No data - zero rows fetched, selected, or processed
select func_20028_b()|
func_20028_b()
0
Warnings:
Warning 1329 No data - zero rows fetched, selected, or processed
select func_20028_c()|
ERROR 22012: Division by 0
call proc_20028_a()|
...
...
@@ -5486,13 +5482,9 @@ end|
select func_20028_a()|
func_20028_a()
0
Warnings:
Warning 1329 No data - zero rows fetched, selected, or processed
select func_20028_b()|
func_20028_b()
0
Warnings:
Warning 1329 No data - zero rows fetched, selected, or processed
select func_20028_c()|
func_20028_c()
NULL
...
...
@@ -6112,8 +6104,6 @@ END|
SELECT bug5274_f2()|
bug5274_f2()
x
Warnings:
Warning 1265 Data truncated for column 'bug5274_f1' at row 1
DROP FUNCTION bug5274_f1|
DROP FUNCTION bug5274_f2|
drop procedure if exists proc_21513|
...
...
@@ -6206,19 +6196,13 @@ c1
SELECT f1(2);
f1(2)
0
Warnings:
Warning 1329 No data - zero rows fetched, selected, or processed
PREPARE s1 FROM 'SELECT f1(2)';
EXECUTE s1;
f1(2)
0
Warnings:
Warning 1329 No data - zero rows fetched, selected, or processed
EXECUTE s1;
f1(2)
0
Warnings:
Warning 1329 No data - zero rows fetched, selected, or processed
DROP PROCEDURE p1;
DROP PROCEDURE p2;
DROP FUNCTION f1;
...
...
mysql-test/r/view_grant.result
View file @
3069530f
...
...
@@ -357,13 +357,9 @@ use mysqltest;
select * from v1;
f2()
NULL
Warnings:
Warning 1329 No data - zero rows fetched, selected, or processed
select * from v2;
f2()
NULL
Warnings:
Warning 1329 No data - zero rows fetched, selected, or processed
select * from v3;
ERROR HY000: View 'mysqltest.v3' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
select * from v4;
...
...
@@ -403,13 +399,9 @@ ERROR HY000: View 'mysqltest.v2' references invalid table(s) or column(s) or fun
select * from v3;
f2()
NULL
Warnings:
Warning 1329 No data - zero rows fetched, selected, or processed
select * from v4;
f2()
NULL
Warnings:
Warning 1329 No data - zero rows fetched, selected, or processed
select * from v5;
ERROR HY000: View 'mysqltest.v5' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
drop view v1, v2, v3, v4, v5;
...
...
mysql-test/suite/archive/archive.result
View file @
3069530f
...
...
@@ -6257,7 +6257,7 @@ auto fld1 companynr fld3 fld4 fld5 fld6
3 011402 37 Romans scholastics jarring
4 011403 37 intercepted audiology tinily
DELETE FROM t2;
ERROR HY000:
Table storage engine for 't2'
doesn't have this option
ERROR HY000:
Storage engine ARCHIVE of the table `test`.`t2`
doesn't have this option
SELECT * FROM t2;
auto fld1 companynr fld3 fld4 fld5 fld6
1 000001 00 Omaha teethe neat
...
...
@@ -8689,7 +8689,7 @@ auto fld1 companynr fld3 fld4 fld5 fld6
3 011402 37 Romans scholastics jarring
4 011403 37 intercepted audiology tinily
TRUNCATE TABLE t2;
ERROR HY000:
Table storage engine for 't2'
doesn't have this option
ERROR HY000:
Storage engine ARCHIVE of the table `test`.`t2`
doesn't have this option
SELECT * FROM t2;
auto fld1 companynr fld3 fld4 fld5 fld6
1 000001 00 Omaha teethe neat
...
...
@@ -12731,15 +12731,6 @@ id id name name
DROP TABLE t1,t2;
flush tables;
SHOW CREATE TABLE t1;
ERROR HY000: Table upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
SELECT * FROM t1;
ERROR HY000: Table upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
INSERT INTO t1 (col1, col2) VALUES (1, "value");
ERROR HY000: Table upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
REPAIR TABLE t1;
Table Op Msg_type Msg_text
test.t1 repair status OK
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`col1` int(11) DEFAULT NULL,
...
...
@@ -12747,6 +12738,10 @@ t1 CREATE TABLE `t1` (
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1
SELECT * FROM t1;
col1 col2
INSERT INTO t1 (col1, col2) VALUES (1, "value");
REPAIR TABLE t1;
Table Op Msg_type Msg_text
test.t1 repair error Corrupt
DROP TABLE t1;
#
# BUG#48757 - missing .ARZ file causes server crash
...
...
@@ -12756,14 +12751,14 @@ FLUSH TABLE t1;
SELECT * FROM t1;
ERROR HY000: Can't find file: 't1' (errno: 2 "No such file or directory")
DROP TABLE t1;
ERROR 42S02: Unknown table 't1'
ERROR 42S02: Unknown table 't
est.t
1'
#
# Ensure that TRUNCATE fails for non-empty archive tables.
#
CREATE TABLE t1 (a INT) ENGINE=ARCHIVE;
INSERT INTO t1 VALUES (1);
TRUNCATE TABLE t1;
ERROR HY000:
Table storage engine for 't1'
doesn't have this option
ERROR HY000:
Storage engine ARCHIVE of the table `test`.`t1`
doesn't have this option
DROP TABLE t1;
#
# BUG#46565 - repair of partition fail for archive engine
...
...
@@ -12852,6 +12847,14 @@ Table Op Msg_type Msg_text
test.t1 optimize status OK
DROP TABLE t1;
#
# Bug#13907676: HA_ARCHIVE::INFO
#
CREATE TABLE t1 (a INT) ENGINE=ARCHIVE;
CREATE TABLE t2 SELECT * FROM t1;
SELECT * FROM t2;
a
DROP TABLE t1, t2;
#
# BUG#917689 Using wrong archive table causes crash
#
create table t1 (a int, b char(50)) engine=archive;
...
...
mysql-test/suite/archive/archive.test
View file @
3069530f
...
...
@@ -1654,18 +1654,13 @@ copy_file std_data/bug47012.frm $MYSQLD_DATADIR/test/t1.frm;
copy_file
std_data
/
bug47012
.
ARZ
$MYSQLD_DATADIR
/
test
/
t1
.
ARZ
;
copy_file
std_data
/
bug47012
.
ARM
$MYSQLD_DATADIR
/
test
/
t1
.
ARM
;
--
error
ER_TABLE_NEEDS_UPGRADE
SHOW
CREATE
TABLE
t1
;
--
error
ER_TABLE_NEEDS_UPGRADE
SELECT
*
FROM
t1
;
--
error
ER_TABLE_NEEDS_UPGRADE
INSERT
INTO
t1
(
col1
,
col2
)
VALUES
(
1
,
"value"
);
REPAIR
TABLE
t1
;
SHOW
CREATE
TABLE
t1
;
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
remove_file
$MYSQLD_DATADIR
/
test
/
t1
.
ARM
;
...
...
@@ -1712,6 +1707,7 @@ REPAIR TABLE t1 EXTENDED;
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug#45377: ARCHIVE tables aren't discoverable after OPTIMIZE
--
echo
#
...
...
@@ -1724,7 +1720,6 @@ CREATE TABLE t1 (a int) ENGINE=ARCHIVE;
SHOW
CREATE
TABLE
t1
;
INSERT
INTO
t1
VALUES
(
1
);
OPTIMIZE
TABLE
t1
;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
remove_file
$MYSQLD_DATADIR
/
test
/
t1
.
frm
;
FLUSH
TABLES
;
INSERT
INTO
t1
VALUES
(
2
);
...
...
@@ -1755,7 +1750,6 @@ SELECT * FROM t1 ORDER BY f LIMIT 1;
DROP
TABLE
t1
;
SET
sort_buffer_size
=
DEFAULT
;
--
echo
#
--
echo
# BUG#11758979 - 51252: ARCHIVE TABLES STILL FAIL UNDER STRESS
--
echo
# TESTS: CRASH, CORRUPTION, 4G MEMOR
...
...
@@ -1770,6 +1764,14 @@ FLUSH TABLE t1;
OPTIMIZE
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug#13907676: HA_ARCHIVE::INFO
--
echo
#
CREATE
TABLE
t1
(
a
INT
)
ENGINE
=
ARCHIVE
;
CREATE
TABLE
t2
SELECT
*
FROM
t1
;
SELECT
*
FROM
t2
;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# BUG#917689 Using wrong archive table causes crash
--
echo
#
...
...
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