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
36e020a5
Commit
36e020a5
authored
Jun 03, 2017
by
Elena Stepanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust storage_engine suite according to server changes in 10.2
parent
aad8cefd
Changes
34
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
338 additions
and
788 deletions
+338
-788
mysql-test/suite/storage_engine/alter_table.result
mysql-test/suite/storage_engine/alter_table.result
+1
-1
mysql-test/suite/storage_engine/alter_tablespace.result
mysql-test/suite/storage_engine/alter_tablespace.result
+1
-1
mysql-test/suite/storage_engine/create_table.result
mysql-test/suite/storage_engine/create_table.result
+1
-1
mysql-test/suite/storage_engine/disabled.def
mysql-test/suite/storage_engine/disabled.def
+12
-0
mysql-test/suite/storage_engine/insert_delayed.test
mysql-test/suite/storage_engine/insert_delayed.test
+1
-1
mysql-test/suite/storage_engine/repair_table.inc
mysql-test/suite/storage_engine/repair_table.inc
+3
-0
mysql-test/suite/storage_engine/repair_table.result
mysql-test/suite/storage_engine/repair_table.result
+2
-1
mysql-test/suite/storage_engine/tbl_opt_data_dir.result
mysql-test/suite/storage_engine/tbl_opt_data_dir.result
+6
-3
mysql-test/suite/storage_engine/tbl_opt_data_dir.test
mysql-test/suite/storage_engine/tbl_opt_data_dir.test
+52
-0
mysql-test/suite/storage_engine/tbl_opt_index_dir.result
mysql-test/suite/storage_engine/tbl_opt_index_dir.result
+19
-0
mysql-test/suite/storage_engine/tbl_opt_index_dir.test
mysql-test/suite/storage_engine/tbl_opt_index_dir.test
+52
-0
mysql-test/suite/storage_engine/tbl_opt_row_format.result
mysql-test/suite/storage_engine/tbl_opt_row_format.result
+17
-3
mysql-test/suite/storage_engine/tbl_opt_row_format.test
mysql-test/suite/storage_engine/tbl_opt_row_format.test
+26
-2
mysql-test/suite/storage_engine/type_char_indexes.result
mysql-test/suite/storage_engine/type_char_indexes.result
+1
-1
mysql-test/suite/storage_engine/type_date_time.result
mysql-test/suite/storage_engine/type_date_time.result
+1
-1
mysql-test/suite/storage_engine/vcol.result
mysql-test/suite/storage_engine/vcol.result
+12
-12
storage/innobase/mysql-test/storage_engine/disabled.def
storage/innobase/mysql-test/storage_engine/disabled.def
+3
-1
storage/innobase/mysql-test/storage_engine/repair_table.rdiff
...age/innobase/mysql-test/storage_engine/repair_table.rdiff
+1
-1
storage/innobase/mysql-test/storage_engine/suite.opt
storage/innobase/mysql-test/storage_engine/suite.opt
+1
-1
storage/innobase/mysql-test/storage_engine/tbl_opt_index_dir.rdiff
...nnobase/mysql-test/storage_engine/tbl_opt_index_dir.rdiff
+0
-0
storage/innobase/mysql-test/storage_engine/tbl_opt_row_format.rdiff
...nobase/mysql-test/storage_engine/tbl_opt_row_format.rdiff
+41
-7
storage/innobase/mysql-test/storage_engine/type_spatial_indexes.rdiff
...base/mysql-test/storage_engine/type_spatial_indexes.rdiff
+0
-712
storage/myisam/mysql-test/storage_engine/alter_tablespace.rdiff
...e/myisam/mysql-test/storage_engine/alter_tablespace.rdiff
+1
-1
storage/myisammrg/mysql-test/storage_engine/alter_tablespace.rdiff
...yisammrg/mysql-test/storage_engine/alter_tablespace.rdiff
+1
-1
storage/myisammrg/mysql-test/storage_engine/create_table.rdiff
...ge/myisammrg/mysql-test/storage_engine/create_table.rdiff
+1
-1
storage/myisammrg/mysql-test/storage_engine/disabled.def
storage/myisammrg/mysql-test/storage_engine/disabled.def
+3
-0
storage/myisammrg/mysql-test/storage_engine/parts/repair_table.rdiff
...sammrg/mysql-test/storage_engine/parts/repair_table.rdiff
+4
-3
storage/myisammrg/mysql-test/storage_engine/repair_table.rdiff
...ge/myisammrg/mysql-test/storage_engine/repair_table.rdiff
+4
-4
storage/myisammrg/mysql-test/storage_engine/tbl_opt_data_dir.rdiff
...yisammrg/mysql-test/storage_engine/tbl_opt_data_dir.rdiff
+8
-8
storage/myisammrg/mysql-test/storage_engine/tbl_opt_index_dir.rdiff
...isammrg/mysql-test/storage_engine/tbl_opt_index_dir.rdiff
+18
-0
storage/myisammrg/mysql-test/storage_engine/tbl_opt_row_format.rdiff
...sammrg/mysql-test/storage_engine/tbl_opt_row_format.rdiff
+22
-6
storage/myisammrg/mysql-test/storage_engine/vcol.rdiff
storage/myisammrg/mysql-test/storage_engine/vcol.rdiff
+15
-15
storage/xtradb/mysql-test/storage_engine/suite.pm
storage/xtradb/mysql-test/storage_engine/suite.pm
+8
-0
storage/xtradb/mysql-test/storage_engine/tbl_opt_index_dir.rdiff
.../xtradb/mysql-test/storage_engine/tbl_opt_index_dir.rdiff
+0
-0
No files found.
mysql-test/suite/storage_engine/alter_table.result
View file @
36e020a5
...
@@ -13,7 +13,7 @@ ALTER TABLE t1 ALTER COLUMN a SET DEFAULT '0';
...
@@ -13,7 +13,7 @@ ALTER TABLE t1 ALTER COLUMN a SET DEFAULT '0';
SHOW CREATE TABLE t1;
SHOW CREATE TABLE t1;
Table Create Table
Table Create Table
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT
'0'
,
`a` int(11) DEFAULT
0
,
`c` char(8) DEFAULT NULL,
`c` char(8) DEFAULT NULL,
`b` int(11) DEFAULT NULL
`b` int(11) DEFAULT NULL
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1
...
...
mysql-test/suite/storage_engine/alter_tablespace.result
View file @
36e020a5
...
@@ -10,7 +10,7 @@ a
...
@@ -10,7 +10,7 @@ a
2
2
ALTER TABLE t1 DISCARD TABLESPACE;
ALTER TABLE t1 DISCARD TABLESPACE;
SELECT a FROM t1;
SELECT a FROM t1;
ERROR HY000: Tablespace has been discarded for table
't1'
ERROR HY000: Tablespace has been discarded for table
`t1`
ALTER TABLE t1 IMPORT TABLESPACE;
ALTER TABLE t1 IMPORT TABLESPACE;
Warnings:
Warnings:
Warning 1810 IO Read error: (2, No such file or directory) Error opening './test/t1.cfg', will attempt to import without schema verification
Warning 1810 IO Read error: (2, No such file or directory) Error opening './test/t1.cfg', will attempt to import without schema verification
...
...
mysql-test/suite/storage_engine/create_table.result
View file @
36e020a5
...
@@ -27,7 +27,7 @@ CREATE TABLE t1 ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> AS SELECT 1 UNION
...
@@ -27,7 +27,7 @@ CREATE TABLE t1 ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> AS SELECT 1 UNION
SHOW CREATE TABLE t1;
SHOW CREATE TABLE t1;
Table Create Table
Table Create Table
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`1` bigint(20) NOT NULL DEFAULT
'0'
`1` bigint(20) NOT NULL DEFAULT
0
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1
SELECT * FROM t1;
SELECT * FROM t1;
1
1
...
...
mysql-test/suite/storage_engine/disabled.def
View file @
36e020a5
alter_table_online : MDEV-9705 - Field type conversion warnings have changed to worse
col_opt_null : MDEV-10252 - Row count in 'out of range' warnings is off
col_opt_not_null : MDEV-10252 - Row count in 'out of range' warnings is off
col_opt_unsigned : MDEV-10252 - Row count in 'out of range' warnings is off
col_opt_zerofill : MDEV-10252 - Row count in 'out of range' warnings is off
type_binary : MDEV-10252 - Row count in 'out of range' warnings is off
type_char : MDEV-10252 - Row count in 'out of range' warnings is off
type_fixed : MDEV-10252 - Row count in 'out of range' warnings is off
type_float : MDEV-10252 - Row count in 'out of range' warnings is off
type_int : MDEV-10252 - Row count in 'out of range' warnings is off
type_varbinary : MDEV-10252 - Row count in 'out of range' warnings is off
type_varchar : MDEV-10252 - Row count in 'out of range' warnings is off
mysql-test/suite/storage_engine/insert_delayed.test
View file @
36e020a5
#
#
# INSERT DELAYED
# INSERT DELAYED
#
#
...
...
mysql-test/suite/storage_engine/repair_table.inc
View file @
36e020a5
...
@@ -91,6 +91,9 @@ if ($have_default_index)
...
@@ -91,6 +91,9 @@ if ($have_default_index)
call
mtr
.
add_suppression
(
" '\..test.t1'"
);
call
mtr
.
add_suppression
(
" '\..test.t1'"
);
call
mtr
.
add_suppression
(
"Couldn't repair table: test.t1"
);
call
mtr
.
add_suppression
(
"Couldn't repair table: test.t1"
);
# In 10.2 with log_warnings=2 the error message is printed to the error log
call
mtr
.
add_suppression
(
"Table 't1' is marked as crashed.*"
);
--
let
$create_definition
=
a
$int_indexed_col
,
b
$char_col
,
$default_index
(
a
)
--
let
$create_definition
=
a
$int_indexed_col
,
b
$char_col
,
$default_index
(
a
)
--
source
create_table
.
inc
--
source
create_table
.
inc
REPAIR
TABLE
t1
;
REPAIR
TABLE
t1
;
...
...
mysql-test/suite/storage_engine/repair_table.result
View file @
36e020a5
...
@@ -59,6 +59,7 @@ call mtr.add_suppression("Got an error from thread_id=.*");
...
@@ -59,6 +59,7 @@ call mtr.add_suppression("Got an error from thread_id=.*");
call mtr.add_suppression("MySQL thread id .*, query id .* localhost.*root Checking table");
call mtr.add_suppression("MySQL thread id .*, query id .* localhost.*root Checking table");
call mtr.add_suppression(" '\..test.t1'");
call mtr.add_suppression(" '\..test.t1'");
call mtr.add_suppression("Couldn't repair table: test.t1");
call mtr.add_suppression("Couldn't repair table: test.t1");
call mtr.add_suppression("Table 't1' is marked as crashed.*");
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>, <CUSTOM_INDEX> (a)) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>, <CUSTOM_INDEX> (a)) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
REPAIR TABLE t1;
REPAIR TABLE t1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
...
@@ -85,7 +86,7 @@ Table Op Msg_type Msg_text
...
@@ -85,7 +86,7 @@ Table Op Msg_type Msg_text
test.t1 check error Size of datafile is: 39 Should be: 65
test.t1 check error Size of datafile is: 39 Should be: 65
test.t1 check error Corrupt
test.t1 check error Corrupt
SELECT a,b FROM t1;
SELECT a,b FROM t1;
ERROR HY000: In
correct key file for table 't1'
; try to repair it
ERROR HY000: In
dex for table 't1' is corrupt
; try to repair it
# Statement ended with one of expected results (0,ER_NOT_KEYFILE,144).
# Statement ended with one of expected results (0,ER_NOT_KEYFILE,144).
# If you got a difference in error message, just add it to rdiff file
# If you got a difference in error message, just add it to rdiff file
INSERT INTO t1 (a,b) VALUES (14,'n'),(15,'o');
INSERT INTO t1 (a,b) VALUES (14,'n'),(15,'o');
...
...
mysql-test/suite/storage_engine/tbl_opt_data_
index_
dir.result
→
mysql-test/suite/storage_engine/tbl_opt_data_dir.result
View file @
36e020a5
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t1;
# Running CREATE TABLE .. DATA DIRECTORY = <>
SHOW CREATE TABLE t1;
SHOW CREATE TABLE t1;
Table Create Table
Table Create Table
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
`b` char(8) DEFAULT NULL
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 DATA DIRECTORY='<DATA_DIR>' INDEX DIRECTORY='<INDEX_DIR>'
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 DATA DIRECTORY='<DATA_DIR_1>'
# For ALTER TABLE the option is ignored
# Running ALTER TABLE .. DATA DIRECTORY = <>
Warnings:
Warnings:
Warning 1618 <
INDEX
DIRECTORY> option ignored
Warning 1618 <
DATA
DIRECTORY> option ignored
SHOW CREATE TABLE t1;
SHOW CREATE TABLE t1;
Table Create Table
Table Create Table
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
`b` char(8) DEFAULT NULL
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 DATA DIRECTORY='<DATA_DIR
>' INDEX DIRECTORY='<INDEX_DIR
>'
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 DATA DIRECTORY='<DATA_DIR
_1
>'
DROP TABLE t1;
DROP TABLE t1;
mysql-test/suite/storage_engine/tbl_opt_data_
index_
dir.test
→
mysql-test/suite/storage_engine/tbl_opt_data_dir.test
View file @
36e020a5
#
#
# Check whether DATA DIRECTORY and INDEX DIRECTORY
# Check whether DATA DIRECTORY is supported in CREATE and ALTER TABLE
# are supported in CREATE and ALTER TABLE
#
#
# Note: the test does not check whether the options
# Note: the test does not check whether the option
# have any real effect on the table, only
# has any real effect on the table, only that it is accepted
# that they are accepted
#
#
--
source
include
/
have_symlink
.
inc
--
source
include
/
have_symlink
.
inc
--
source
have_engine
.
inc
--
source
have_engine
.
inc
--
let
$data_dir
=
$MYSQLTEST_VARDIR
/
storage_engine_data_dir
/
--
let
$data_dir
1
=
$MYSQLTEST_VARDIR
/
storage_engine_data_dir1
/
--
let
$
index_dir
=
$MYSQLTEST_VARDIR
/
storage_engine_index_dir
/
--
let
$
data_dir2
=
$MYSQLTEST_VARDIR
/
storage_engine_data_dir2
/
--
mkdir
$data_dir
--
mkdir
$data_dir
1
--
mkdir
$
index_dir
--
mkdir
$
data_dir2
--
disable_warnings
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
--
enable_warnings
--
let
$table_options
=
DATA
DIRECTORY
=
'$data_dir
'
INDEX
DIRECTORY
=
'$index_dir
'
--
let
$table_options
=
DATA
DIRECTORY
=
'$data_dir
1
'
# We cannot mask the folder
s name here
, but we can switch off query logging
# We cannot mask the folder
name here and further
, but we can switch off query logging
--
let
$disable_query_log
=
1
--
let
$disable_query_log
=
1
--
echo
# Running CREATE TABLE .. DATA DIRECTORY = <>
--
source
create_table
.
inc
--
source
create_table
.
inc
--
source
mask_engine
.
inc
--
source
mask_engine
.
inc
--
replace_result
$data_dir
<
DATA_DIR
>
$index_dir
<
INDEX_DIR
>
--
replace_result
$data_dir
1
<
DATA_DIR_1
>
SHOW
CREATE
TABLE
t1
;
SHOW
CREATE
TABLE
t1
;
--
let
$alter_definition
=
INDEX
DIRECTORY
=
'$data_dir'
--
echo
# For ALTER TABLE the option is ignored
--
let
$alter_definition
=
DATA
DIRECTORY
=
'$data_dir2'
--
disable_query_log
--
disable_query_log
--
echo
# Running ALTER TABLE .. DATA DIRECTORY = <>
--
source
alter_table
.
inc
--
source
alter_table
.
inc
if
(
$mysql_errname
)
if
(
$mysql_errname
)
{
{
...
@@ -39,14 +41,12 @@ if ($mysql_errname)
...
@@ -39,14 +41,12 @@ if ($mysql_errname)
}
}
--
enable_query_log
--
enable_query_log
--
source
mask_engine
.
inc
--
source
mask_engine
.
inc
--
replace_result
$data_dir
<
DATA_DIR
>
$index_dir
<
INDEX_DIR
>
--
replace_result
$data_dir
1
<
DATA_DIR_1
>
SHOW
CREATE
TABLE
t1
;
SHOW
CREATE
TABLE
t1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
source
cleanup_engine
.
inc
--
source
cleanup_engine
.
inc
--
rmdir
$data_dir
--
rmdir
$data_dir1
--
rmdir
$index_dir
--
rmdir
$data_dir2
mysql-test/suite/storage_engine/tbl_opt_index_dir.result
0 → 100644
View file @
36e020a5
DROP TABLE IF EXISTS t1;
# Running CREATE TABLE .. INDEX DIRECTORY = <>
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INDEX DIRECTORY='<INDEX_DIR_1>'
# For ALTER TABLE the option is ignored
# Running ALTER TABLE .. INDEX DIRECTORY = <>
Warnings:
Warning 1618 <INDEX DIRECTORY> option ignored
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INDEX DIRECTORY='<INDEX_DIR_1>'
DROP TABLE t1;
mysql-test/suite/storage_engine/tbl_opt_index_dir.test
0 → 100644
View file @
36e020a5
#
# Check whether INDEX DIRECTORY is supported in CREATE and ALTER TABLE
#
# Note: the test does not check whether the option
# has any real effect on the table, only that it is accepted
#
--
source
include
/
have_symlink
.
inc
--
source
have_engine
.
inc
--
let
$index_dir1
=
$MYSQLTEST_VARDIR
/
storage_engine_index_dir1
/
--
let
$index_dir2
=
$MYSQLTEST_VARDIR
/
storage_engine_index_dir2
/
--
mkdir
$index_dir1
--
mkdir
$index_dir2
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
--
let
$table_options
=
INDEX
DIRECTORY
=
'$index_dir1'
# We cannot mask the folder name here and further, but we can switch off query logging
--
let
$disable_query_log
=
1
--
echo
# Running CREATE TABLE .. INDEX DIRECTORY = <>
--
source
create_table
.
inc
--
source
mask_engine
.
inc
--
replace_result
$index_dir1
<
INDEX_DIR_1
>
SHOW
CREATE
TABLE
t1
;
--
echo
# For ALTER TABLE the option is ignored
--
let
$alter_definition
=
INDEX
DIRECTORY
=
'$index_dir2'
--
disable_query_log
--
echo
# Running ALTER TABLE .. INDEX DIRECTORY = <>
--
source
alter_table
.
inc
if
(
$mysql_errname
)
{
--
let
$my_last_stmt
=
$alter_statement
--
let
$functionality
=
ALTER
TABLE
--
source
unexpected_result
.
inc
}
--
enable_query_log
--
source
mask_engine
.
inc
--
replace_result
$index_dir1
<
INDEX_DIR_1
>
SHOW
CREATE
TABLE
t1
;
DROP
TABLE
t1
;
--
source
cleanup_engine
.
inc
--
rmdir
$index_dir1
--
rmdir
$index_dir2
mysql-test/suite/storage_engine/tbl_opt_row_format.result
View file @
36e020a5
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> ROW_FORMAT=FIXED;
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> ROW_FORMAT=DYNAMIC;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
ALTER TABLE t1 ROW_FORMAT=FIXED;
SHOW CREATE TABLE t1;
SHOW CREATE TABLE t1;
Table Create Table
Table Create Table
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
`b` char(8) DEFAULT NULL
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
ALTER TABLE t1 ROW_FORMAT=
DYNAMIC
;
ALTER TABLE t1 ROW_FORMAT=
PAGE
;
SHOW CREATE TABLE t1;
SHOW CREATE TABLE t1;
Table Create Table
Table Create Table
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
`b` char(8) DEFAULT NULL
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=PAGE
ALTER TABLE t1 ROW_FORMAT=COMPACT;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
DROP TABLE t1;
DROP TABLE t1;
mysql-test/suite/storage_engine/tbl_opt_row_format.test
View file @
36e020a5
...
@@ -13,12 +13,12 @@
...
@@ -13,12 +13,12 @@
DROP
TABLE
IF
EXISTS
t1
;
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
--
enable_warnings
--
let
$table_options
=
ROW_FORMAT
=
FIXED
--
let
$table_options
=
ROW_FORMAT
=
DYNAMIC
--
source
create_table
.
inc
--
source
create_table
.
inc
--
source
mask_engine
.
inc
--
source
mask_engine
.
inc
SHOW
CREATE
TABLE
t1
;
SHOW
CREATE
TABLE
t1
;
--
let
$alter_definition
=
ROW_FORMAT
=
DYNAMIC
--
let
$alter_definition
=
ROW_FORMAT
=
FIXED
--
source
alter_table
.
inc
--
source
alter_table
.
inc
if
(
$mysql_errname
)
if
(
$mysql_errname
)
{
{
...
@@ -29,6 +29,30 @@ if ($mysql_errname)
...
@@ -29,6 +29,30 @@ if ($mysql_errname)
--
source
mask_engine
.
inc
--
source
mask_engine
.
inc
SHOW
CREATE
TABLE
t1
;
SHOW
CREATE
TABLE
t1
;
--
let
$alter_definition
=
ROW_FORMAT
=
PAGE
--
source
alter_table
.
inc
if
(
$mysql_errname
)
{
--
let
$my_last_stmt
=
$alter_statement
--
let
$functionality
=
ALTER
TABLE
--
source
unexpected_result
.
inc
}
--
source
mask_engine
.
inc
SHOW
CREATE
TABLE
t1
;
--
let
$alter_definition
=
ROW_FORMAT
=
COMPACT
--
source
alter_table
.
inc
if
(
$mysql_errname
)
{
--
let
$my_last_stmt
=
$alter_statement
--
let
$functionality
=
ALTER
TABLE
--
source
unexpected_result
.
inc
}
--
source
mask_engine
.
inc
SHOW
CREATE
TABLE
t1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
source
cleanup_engine
.
inc
--
source
cleanup_engine
.
inc
...
...
mysql-test/suite/storage_engine/type_char_indexes.result
View file @
36e020a5
...
@@ -97,7 +97,7 @@ varchar2b 1
...
@@ -97,7 +97,7 @@ varchar2b 1
varchar3b 1
varchar3b 1
SET SESSION optimizer_switch = 'engine_condition_pushdown=on';
SET SESSION optimizer_switch = 'engine_condition_pushdown=on';
Warnings:
Warnings:
Warning 1681 'engine_condition_pushdown=on' is deprecated and will be removed in a future release
.
Warning 1681 'engine_condition_pushdown=on' is deprecated and will be removed in a future release
EXPLAIN SELECT c,c20,v16,v128 FROM t1 WHERE c > 'a';
EXPLAIN SELECT c,c20,v16,v128 FROM t1 WHERE c > 'a';
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
# # # range c_v c_v # # # Using index condition
# # # range c_v c_v # # # Using index condition
...
...
mysql-test/suite/storage_engine/type_date_time.result
View file @
36e020a5
...
@@ -13,7 +13,7 @@ SHOW COLUMNS IN t1;
...
@@ -13,7 +13,7 @@ SHOW COLUMNS IN t1;
Field Type Null Key Default Extra
Field Type Null Key Default Extra
d date # # #
d date # # #
dt datetime # # #
dt datetime # # #
ts timestamp # # # on update
CURRENT_TIMESTAMP
ts timestamp # # # on update
current_timestamp()
t time # # #
t time # # #
y year(4) # # #
y year(4) # # #
y4 year(4) # # #
y4 year(4) # # #
...
...
mysql-test/suite/storage_engine/vcol.result
View file @
36e020a5
...
@@ -3,12 +3,12 @@ CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN> GENERATED ALWAYS AS (a+1)) ENGIN
...
@@ -3,12 +3,12 @@ CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN> GENERATED ALWAYS AS (a+1)) ENGIN
SHOW COLUMNS IN t1;
SHOW COLUMNS IN t1;
Field Type Null Key Default Extra
Field Type Null Key Default Extra
a int(11) # #
a int(11) # #
b int(11) # # VIRTUAL
b int(11) # # VIRTUAL
GENERATED
INSERT INTO t1 (a) VALUES (1),(2);
INSERT INTO t1 (a) VALUES (1),(2);
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
Warnings:
Warnings:
Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
SELECT a,b FROM t1;
SELECT a,b FROM t1;
a b
a b
1 2
1 2
...
@@ -20,12 +20,12 @@ CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN> GENERATED ALWAYS AS (a+1) PERSIS
...
@@ -20,12 +20,12 @@ CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN> GENERATED ALWAYS AS (a+1) PERSIS
SHOW COLUMNS IN t1;
SHOW COLUMNS IN t1;
Field Type Null Key Default Extra
Field Type Null Key Default Extra
a int(11) # #
a int(11) # #
b int(11) # #
PERSISTENT
b int(11) # #
STORED GENERATED
INSERT INTO t1 (a) VALUES (1),(2);
INSERT INTO t1 (a) VALUES (1),(2);
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
Warnings:
Warnings:
Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
SELECT a,b FROM t1;
SELECT a,b FROM t1;
a b
a b
1 2
1 2
...
@@ -37,12 +37,12 @@ CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN> GENERATED ALWAYS AS (a+1) VIRTUA
...
@@ -37,12 +37,12 @@ CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN> GENERATED ALWAYS AS (a+1) VIRTUA
SHOW COLUMNS IN t1;
SHOW COLUMNS IN t1;
Field Type Null Key Default Extra
Field Type Null Key Default Extra
a int(11) # #
a int(11) # #
b int(11) # # VIRTUAL
b int(11) # # VIRTUAL
GENERATED
INSERT INTO t1 (a) VALUES (1),(2);
INSERT INTO t1 (a) VALUES (1),(2);
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
Warnings:
Warnings:
Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
SELECT a,b FROM t1;
SELECT a,b FROM t1;
a b
a b
1 2
1 2
...
@@ -54,12 +54,12 @@ CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN> AS (a+1) PERSISTENT) ENGINE=<STO
...
@@ -54,12 +54,12 @@ CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN> AS (a+1) PERSISTENT) ENGINE=<STO
SHOW COLUMNS IN t1;
SHOW COLUMNS IN t1;
Field Type Null Key Default Extra
Field Type Null Key Default Extra
a int(11) # #
a int(11) # #
b int(11) # #
PERSISTENT
b int(11) # #
STORED GENERATED
INSERT INTO t1 (a) VALUES (1),(2);
INSERT INTO t1 (a) VALUES (1),(2);
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
Warnings:
Warnings:
Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
SELECT a,b FROM t1;
SELECT a,b FROM t1;
a b
a b
1 2
1 2
...
...
storage/innobase/mysql-test/storage_engine/disabled.def
View file @
36e020a5
...
@@ -4,4 +4,6 @@ insert_high_prio : InnoDB does not use table-level locking
...
@@ -4,4 +4,6 @@ insert_high_prio : InnoDB does not use table-level locking
insert_low_prio : InnoDB does not use table-level locking
insert_low_prio : InnoDB does not use table-level locking
select_high_prio : InnoDB does not use table-level locking
select_high_prio : InnoDB does not use table-level locking
update_low_prio : InnoDB does not use table-level locking
update_low_prio : InnoDB does not use table-level locking
insert_delayed : MDEV-12880 - INSERT DELAYED is not detected as inapplicable to a table under lock
lock_concurrent : MDEV-12882 - Assertion failure
tbl_opt_index_dir : INDEX DIRECTORY option is not supported anymore
storage/innobase/mysql-test/storage_engine/repair_table.rdiff
View file @
36e020a5
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
-test.t1 check error Corrupt
-test.t1 check error Corrupt
+test.t1 check status OK
+test.t1 check status OK
SELECT a,b FROM t1;
SELECT a,b FROM t1;
-ERROR HY000: In
correct key file for table 't1'
; try to repair it
-ERROR HY000: In
dex for table 't1' is corrupt
; try to repair it
-# Statement ended with one of expected results (0,ER_NOT_KEYFILE,144).
-# Statement ended with one of expected results (0,ER_NOT_KEYFILE,144).
-# If you got a difference in error message, just add it to rdiff file
-# If you got a difference in error message, just add it to rdiff file
-INSERT INTO t1 (a,b) VALUES (14,'n'),(15,'o');
-INSERT INTO t1 (a,b) VALUES (14,'n'),(15,'o');
...
...
storage/innobase/mysql-test/storage_engine/suite.opt
View file @
36e020a5
--innodb
--ignore-builtin-innodb --plugin-load=ha_innodb
--innodb
storage/innobase/mysql-test/storage_engine/tbl_opt_
data_
index_dir.rdiff
→
storage/innobase/mysql-test/storage_engine/tbl_opt_index_dir.rdiff
View file @
36e020a5
File moved
storage/innobase/mysql-test/storage_engine/tbl_opt_row_format.rdiff
View file @
36e020a5
--- suite/storage_engine/tbl_opt_row_format.result 2012-06-24 23:55:19.539380000 +0400
--- ../storage/innobase/mysql-test/storage_engine/tbl_opt_row_format.result~ 2017-05-24 00:40:12.854181048 +0300
+++ suite/storage_engine/tbl_opt_row_format.reject 2012-07-15 19:26:02.235049157 +0400
+++ ../storage/innobase/mysql-test/storage_engine/tbl_opt_row_format.reject 2017-05-24 00:49:06.578191030 +0300
@@ -1,5 +1,7 @@
@@ -7,19 +7,39 @@
DROP TABLE IF EXISTS t1;
`b` char(8) DEFAULT NULL
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> ROW_FORMAT=FIXED;
) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
+Warnings:
ALTER TABLE t1 ROW_FORMAT=FIXED;
+Warning 1478 <STORAGE_ENGINE>: assuming ROW_FORMAT=COMPACT.
+ERROR HY000: Table storage engine '<STORAGE_ENGINE>' does not support the create option 'ROW_TYPE'
+# ERROR: Statement ended with errno 1478, errname ER_ILLEGAL_HA_CREATE_OPTION (expected to succeed)
+# ------------ UNEXPECTED RESULT ------------
+# [ ALTER TABLE t1 ROW_FORMAT=FIXED ]
+# The statement|command finished with ER_ILLEGAL_HA_CREATE_OPTION.
+# ALTER TABLE or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors.
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def.
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped.
+# Also, this problem may cause a chain effect (more errors of different kinds in the test).
+# -------------------------------------------
SHOW CREATE TABLE t1;
SHOW CREATE TABLE t1;
Table Create Table
Table Create Table
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
ALTER TABLE t1 ROW_FORMAT=PAGE;
+ERROR HY000: Table storage engine '<STORAGE_ENGINE>' does not support the create option 'ROW_TYPE'
+# ERROR: Statement ended with errno 1478, errname ER_ILLEGAL_HA_CREATE_OPTION (expected to succeed)
+# ------------ UNEXPECTED RESULT ------------
+# [ ALTER TABLE t1 ROW_FORMAT=PAGE ]
+# The statement|command finished with ER_ILLEGAL_HA_CREATE_OPTION.
+# ALTER TABLE or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors.
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def.
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped.
+# Also, this problem may cause a chain effect (more errors of different kinds in the test).
+# -------------------------------------------
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=PAGE
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
ALTER TABLE t1 ROW_FORMAT=COMPACT;
SHOW CREATE TABLE t1;
Table Create Table
storage/innobase/mysql-test/storage_engine/type_spatial_indexes.rdiff
deleted
100644 → 0
View file @
aad8cefd
This diff is collapsed.
Click to expand it.
storage/myisam/mysql-test/storage_engine/alter_tablespace.rdiff
View file @
36e020a5
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
-2
-2
-ALTER TABLE t1 DISCARD TABLESPACE;
-ALTER TABLE t1 DISCARD TABLESPACE;
-SELECT a FROM t1;
-SELECT a FROM t1;
-ERROR HY000: Tablespace has been discarded for table
't1'
-ERROR HY000: Tablespace has been discarded for table
`t1`
-ALTER TABLE t1 IMPORT TABLESPACE;
-ALTER TABLE t1 IMPORT TABLESPACE;
-Warnings:
-Warnings:
-Warning 1810 IO Read error: (2, No such file or directory) Error opening './test/t1.cfg', will attempt to import without schema verification
-Warning 1810 IO Read error: (2, No such file or directory) Error opening './test/t1.cfg', will attempt to import without schema verification
...
...
storage/myisammrg/mysql-test/storage_engine/alter_tablespace.rdiff
View file @
36e020a5
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
-2
-2
-ALTER TABLE t1 DISCARD TABLESPACE;
-ALTER TABLE t1 DISCARD TABLESPACE;
-SELECT a FROM t1;
-SELECT a FROM t1;
-ERROR HY000: Tablespace has been discarded for table
't1'
-ERROR HY000: Tablespace has been discarded for table
`t1`
-ALTER TABLE t1 IMPORT TABLESPACE;
-ALTER TABLE t1 IMPORT TABLESPACE;
-Warnings:
-Warnings:
-Warning 1810 IO Read error: (2, No such file or directory) Error opening './test/t1.cfg', will attempt to import without schema verification
-Warning 1810 IO Read error: (2, No such file or directory) Error opening './test/t1.cfg', will attempt to import without schema verification
...
...
storage/myisammrg/mysql-test/storage_engine/create_table.rdiff
View file @
36e020a5
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
-SHOW CREATE TABLE t1;
-SHOW CREATE TABLE t1;
-Table Create Table
-Table Create Table
-t1 CREATE TABLE `t1` (
-t1 CREATE TABLE `t1` (
- `1` bigint(20) NOT NULL DEFAULT
'0'
- `1` bigint(20) NOT NULL DEFAULT
0
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1
-SELECT * FROM t1;
-SELECT * FROM t1;
-1
-1
...
...
storage/myisammrg/mysql-test/storage_engine/disabled.def
0 → 100644
View file @
36e020a5
insert_delayed : MDEV-12880 - INSERT DELAYED is not detected as inapplicable to a table under lock
lock_concurrent : MDEV-12882 - Assertion failure
select_high_prio : MDEV-12885 - MDL_SHARED_READ_ONLY is taken instead of MDL_SHARED_READ
storage/myisammrg/mysql-test/storage_engine/parts/repair_table.rdiff
View file @
36e020a5
---
repair_table.result 2013-01-23 01:35:44.388267080 +04
00
---
suite/storage_engine/parts/repair_table.result 2017-05-20 03:58:19.451939791 +03
00
+++
repair_table.reject 2013-01-23 03:16:26.468307847 +04
00
+++
../storage/myisammrg/mysql-test/storage_engine/parts/repair_table.reject 2017-05-24 02:42:31.130318292 +03
00
@@ -1,234 +1,11
4
@@
@@ -1,234 +1,11
5
@@
call mtr.add_suppression("Table '.*t1.*' is marked as crashed and should be repaired");
call mtr.add_suppression("Table '.*t1.*' is marked as crashed and should be repaired");
DROP TABLE IF EXISTS t1, t2;
DROP TABLE IF EXISTS t1, t2;
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2;
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2;
...
@@ -144,6 +144,7 @@
...
@@ -144,6 +144,7 @@
call mtr.add_suppression("MySQL thread id .*, query id .* localhost.*root Checking table");
call mtr.add_suppression("MySQL thread id .*, query id .* localhost.*root Checking table");
call mtr.add_suppression(" '\..test.t1'");
call mtr.add_suppression(" '\..test.t1'");
call mtr.add_suppression("Couldn't repair table: test.t1");
call mtr.add_suppression("Couldn't repair table: test.t1");
+call mtr.add_suppression("Table 't1' is marked as crashed.*");
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>, <CUSTOM_INDEX> (a)) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2;
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>, <CUSTOM_INDEX> (a)) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2;
+ERROR HY000: Engine cannot be used in partitioned tables
+ERROR HY000: Engine cannot be used in partitioned tables
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed)
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed)
...
...
storage/myisammrg/mysql-test/storage_engine/repair_table.rdiff
View file @
36e020a5
---
repair_table.result 2013-01-23 01:26:05.995538460 +04
00
---
suite/storage_engine/repair_table.result 2017-05-24 01:09:07.274213486 +03
00
+++
repair_table.reject 2013-01-23 02:50:55.035560564 +04
00
+++
suite/storage_engine/repair_table.reject 2017-05-24 01:10:25.466214949 +03
00
@@ -4,56 +4,50 @@
@@ -4,56 +4,50 @@
CREATE TABLE t2 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
CREATE TABLE t2 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
REPAIR TABLE t1;
REPAIR TABLE t1;
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
DROP TABLE t1, t2;
DROP TABLE t1, t2;
call mtr.add_suppression("Got an error from thread_id=.*");
call mtr.add_suppression("Got an error from thread_id=.*");
call mtr.add_suppression("MySQL thread id .*, query id .* localhost.*root Checking table");
call mtr.add_suppression("MySQL thread id .*, query id .* localhost.*root Checking table");
@@ -6
2,45 +56
,32 @@
@@ -6
3,45 +57
,32 @@
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>, <CUSTOM_INDEX> (a)) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>, <CUSTOM_INDEX> (a)) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
REPAIR TABLE t1;
REPAIR TABLE t1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
-test.t1 check error Corrupt
-test.t1 check error Corrupt
+test.t1 check status OK
+test.t1 check status OK
SELECT a,b FROM t1;
SELECT a,b FROM t1;
-ERROR HY000: In
correct key file for table 't1'
; try to repair it
-ERROR HY000: In
dex for table 't1' is corrupt
; try to repair it
-# Statement ended with one of expected results (0,ER_NOT_KEYFILE,144).
-# Statement ended with one of expected results (0,ER_NOT_KEYFILE,144).
-# If you got a difference in error message, just add it to rdiff file
-# If you got a difference in error message, just add it to rdiff file
-INSERT INTO t1 (a,b) VALUES (14,'n'),(15,'o');
-INSERT INTO t1 (a,b) VALUES (14,'n'),(15,'o');
...
...
storage/myisammrg/mysql-test/storage_engine/tbl_opt_data_
index_
dir.rdiff
→
storage/myisammrg/mysql-test/storage_engine/tbl_opt_data_dir.rdiff
View file @
36e020a5
---
tbl_opt_data_index_dir.result 2013-01-22 22:05:05.246633000 +04
00
---
suite/storage_engine/tbl_opt_data_dir.result 2017-05-24 00:21:15.550159778 +03
00
+++
tbl_opt_data_index_dir.reject 2013-01-23 02:50:59.951498762 +04
00
+++
../storage/myisammrg/mysql-test/storage_engine/tbl_opt_data_dir.reject 2017-05-24 00:25:45.506164827 +03
00
@@ -
4,7 +4
,7 @@
@@ -
5,7 +5
,7 @@
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
`b` char(8) DEFAULT NULL
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 DATA DIRECTORY='<DATA_DIR
>' INDEX DIRECTORY='<INDEX_DIR
>'
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 DATA DIRECTORY='<DATA_DIR
_1
>'
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
# For ALTER TABLE the option is ignored
# Running ALTER TABLE .. DATA DIRECTORY = <>
Warnings:
Warnings:
Warning 1618 <INDEX DIRECTORY> option ignored
@@ -15,5 +15,5 @@
SHOW CREATE TABLE t1;
@@ -12,5 +12,5 @@
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
`b` char(8) DEFAULT NULL
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 DATA DIRECTORY='<DATA_DIR
>' INDEX DIRECTORY='<INDEX_DIR
>'
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 DATA DIRECTORY='<DATA_DIR
_1
>'
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
DROP TABLE t1;
DROP TABLE t1;
storage/myisammrg/mysql-test/storage_engine/tbl_opt_index_dir.rdiff
0 → 100644
View file @
36e020a5
--- suite/storage_engine/tbl_opt_index_dir.result 2017-05-24 00:21:15.550159778 +0300
+++ ../storage/myisammrg/mysql-test/storage_engine/tbl_opt_index_dir.reject 2017-05-24 00:25:45.506164827 +0300
@@ -5,7 +5,7 @@
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INDEX DIRECTORY='<INDEX_DIR_1>'
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
# For ALTER TABLE the option is ignored
# Running ALTER TABLE .. INDEX DIRECTORY = <>
Warnings:
@@ -15,5 +15,5 @@
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INDEX DIRECTORY='<INDEX_DIR_1>'
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
DROP TABLE t1;
storage/myisammrg/mysql-test/storage_engine/tbl_opt_row_format.rdiff
View file @
36e020a5
--- tbl_opt_row_format.result 2013-01-22 22:05:05.246633000 +0400
--- ../storage/myisammrg/mysql-test/storage_engine/tbl_opt_row_format.result~ 2017-05-24 00:50:44.254192857 +0300
+++ tbl_opt_row_format.reject 2013-01-23 02:51:04.743438518 +0400
+++ ../storage/myisammrg/mysql-test/storage_engine/tbl_opt_row_format.reject 2017-05-24 00:50:44.334192859 +0300
@@ -5,12 +5,12 @@
@@ -5,26 +5,26 @@
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
ALTER TABLE t1 ROW_FORMAT=FIXED;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
`b` char(8) DEFAULT NULL
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
ALTER TABLE t1 ROW_FORMAT=
DYNAMIC
;
ALTER TABLE t1 ROW_FORMAT=
PAGE
;
SHOW CREATE TABLE t1;
SHOW CREATE TABLE t1;
Table Create Table
Table Create Table
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
`b` char(8) DEFAULT NULL
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=PAGE
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=PAGE INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
ALTER TABLE t1 ROW_FORMAT=COMPACT;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL
-) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
+) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
DROP TABLE t1;
DROP TABLE t1;
storage/myisammrg/mysql-test/storage_engine/vcol.rdiff
View file @
36e020a5
...
@@ -6,12 +6,12 @@
...
@@ -6,12 +6,12 @@
-SHOW COLUMNS IN t1;
-SHOW COLUMNS IN t1;
-Field Type Null Key Default Extra
-Field Type Null Key Default Extra
-a int(11) # #
-a int(11) # #
-b int(11) # # VIRTUAL
-b int(11) # # VIRTUAL
GENERATED
-INSERT INTO t1 (a) VALUES (1),(2);
-INSERT INTO t1 (a) VALUES (1),(2);
-INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
-INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
-Warnings:
-Warnings:
-Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
-Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
-Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
-Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
-SELECT a,b FROM t1;
-SELECT a,b FROM t1;
-a b
-a b
-1 2
-1 2
...
@@ -23,12 +23,12 @@
...
@@ -23,12 +23,12 @@
-SHOW COLUMNS IN t1;
-SHOW COLUMNS IN t1;
-Field Type Null Key Default Extra
-Field Type Null Key Default Extra
-a int(11) # #
-a int(11) # #
-b int(11) # #
PERSISTENT
-b int(11) # #
STORED GENERATED
-INSERT INTO t1 (a) VALUES (1),(2);
-INSERT INTO t1 (a) VALUES (1),(2);
-INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
-INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
-Warnings:
-Warnings:
-Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
-Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
-Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
-Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
-SELECT a,b FROM t1;
-SELECT a,b FROM t1;
-a b
-a b
-1 2
-1 2
...
@@ -40,12 +40,12 @@
...
@@ -40,12 +40,12 @@
-SHOW COLUMNS IN t1;
-SHOW COLUMNS IN t1;
-Field Type Null Key Default Extra
-Field Type Null Key Default Extra
-a int(11) # #
-a int(11) # #
-b int(11) # # VIRTUAL
-b int(11) # # VIRTUAL
GENERATED
-INSERT INTO t1 (a) VALUES (1),(2);
-INSERT INTO t1 (a) VALUES (1),(2);
-INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
-INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
-Warnings:
-Warnings:
-Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
-Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
-Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
-Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
-SELECT a,b FROM t1;
-SELECT a,b FROM t1;
-a b
-a b
-1 2
-1 2
...
@@ -57,12 +57,12 @@
...
@@ -57,12 +57,12 @@
-SHOW COLUMNS IN t1;
-SHOW COLUMNS IN t1;
-Field Type Null Key Default Extra
-Field Type Null Key Default Extra
-a int(11) # #
-a int(11) # #
-b int(11) # #
PERSISTENT
-b int(11) # #
STORED GENERATED
-INSERT INTO t1 (a) VALUES (1),(2);
-INSERT INTO t1 (a) VALUES (1),(2);
-INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
-INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
-Warnings:
-Warnings:
-Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
-Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
-Warning 1906 The value specified for
compu
ted column 'b' in table 't1' ignored
-Warning 1906 The value specified for
genera
ted column 'b' in table 't1' ignored
-SELECT a,b FROM t1;
-SELECT a,b FROM t1;
-a b
-a b
-1 2
-1 2
...
@@ -70,11 +70,11 @@
...
@@ -70,11 +70,11 @@
-3 4
-3 4
-4 5
-4 5
-DROP TABLE t1;
-DROP TABLE t1;
+ERROR HY000: MRG_MyISAM storage engine does not support
compu
ted columns
+ERROR HY000: MRG_MyISAM storage engine does not support
genera
ted columns
+# ERROR: Statement ended with errno 1910, errname ER_UNSUPPORTED_ENGINE_FOR_
VIRTUAL
_COLUMNS (expected to succeed)
+# ERROR: Statement ended with errno 1910, errname ER_UNSUPPORTED_ENGINE_FOR_
GENERATED
_COLUMNS (expected to succeed)
+# ------------ UNEXPECTED RESULT ------------
+# ------------ UNEXPECTED RESULT ------------
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom column options*/, b INT(11) /*!*/ /*Custom column options*/ GENERATED ALWAYS AS (a+1)) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST ]
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom column options*/, b INT(11) /*!*/ /*Custom column options*/ GENERATED ALWAYS AS (a+1)) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST ]
+# The statement|command finished with ER_UNSUPPORTED_ENGINE_FOR_
VIRTUAL
_COLUMNS.
+# The statement|command finished with ER_UNSUPPORTED_ENGINE_FOR_
GENERATED
_COLUMNS.
+# Virtual columns or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors.
+# Virtual columns or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors.
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def.
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def.
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped.
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped.
...
...
storage/xtradb/mysql-test/storage_engine/suite.pm
0 → 100644
View file @
36e020a5
package
My::Suite::SE::
XtraDB
;
@ISA
=
qw(My::Suite)
;
return
"
Need XtraDB engine
";
bless
{
};
storage/xtradb/mysql-test/storage_engine/tbl_opt_
data_
index_dir.rdiff
→
storage/xtradb/mysql-test/storage_engine/tbl_opt_index_dir.rdiff
View file @
36e020a5
File moved
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