2002-09-01 20:17:33 +02:00
|
|
|
#
|
|
|
|
# Test of repair table
|
|
|
|
#
|
2020-05-13 13:10:35 +02:00
|
|
|
--source include/have_sequence.inc
|
2019-08-30 15:06:54 +02:00
|
|
|
--source include/default_charset.inc
|
|
|
|
|
|
|
|
call mtr.add_suppression("character set is multi-byte");
|
2002-09-01 20:17:33 +02:00
|
|
|
|
2003-01-06 00:48:59 +01:00
|
|
|
--disable_warnings
|
2002-09-01 20:17:33 +02:00
|
|
|
drop table if exists t1;
|
2003-01-06 00:48:59 +01:00
|
|
|
--enable_warnings
|
|
|
|
|
2002-09-01 20:17:33 +02:00
|
|
|
create table t1 SELECT 1,"table 1";
|
|
|
|
repair table t1 use_frm;
|
2003-12-10 05:31:42 +01:00
|
|
|
alter table t1 ENGINE=HEAP;
|
2003-04-27 21:12:08 +02:00
|
|
|
repair table t1 use_frm;
|
|
|
|
drop table t1;
|
2003-05-03 15:21:39 +02:00
|
|
|
|
2004-03-22 18:34:36 +01:00
|
|
|
#
|
|
|
|
# disabled keys during repair
|
|
|
|
#
|
|
|
|
create table t1(id int PRIMARY KEY, st varchar(10), KEY st_key(st));
|
|
|
|
insert into t1 values(1, "One");
|
|
|
|
alter table t1 disable keys;
|
|
|
|
show keys from t1;
|
|
|
|
repair table t1 extended;
|
|
|
|
show keys from t1;
|
|
|
|
drop table t1;
|
|
|
|
|
|
|
|
|
2003-05-03 15:21:39 +02:00
|
|
|
# non-existent table
|
|
|
|
repair table t1 use_frm;
|
|
|
|
|
2003-12-10 05:31:42 +01:00
|
|
|
create table t1 engine=myisam SELECT 1,"table 1";
|
2004-04-09 06:12:41 +02:00
|
|
|
flush tables;
|
2007-12-12 18:19:24 +01:00
|
|
|
let $MYSQLD_DATADIR= `select @@datadir`;
|
|
|
|
system echo 1 > $MYSQLD_DATADIR/test/t1.MYI ;
|
2004-04-07 16:04:28 +02:00
|
|
|
repair table t1;
|
|
|
|
repair table t1 use_frm;
|
|
|
|
drop table t1;
|
2005-07-28 02:22:47 +02:00
|
|
|
|
2006-08-14 14:05:02 +02:00
|
|
|
#
|
|
|
|
# BUG#18874 - Setting myisam_repair_threads > 1, index cardinality always 1
|
|
|
|
#
|
|
|
|
CREATE TABLE t1(a INT, KEY(a));
|
|
|
|
INSERT INTO t1 VALUES(1),(2),(3),(4),(5);
|
|
|
|
SET myisam_repair_threads=2;
|
|
|
|
REPAIR TABLE t1;
|
|
|
|
SHOW INDEX FROM t1;
|
|
|
|
SET myisam_repair_threads=@@global.myisam_repair_threads;
|
|
|
|
DROP TABLE t1;
|
|
|
|
|
2006-10-11 17:34:20 +02:00
|
|
|
#
|
|
|
|
# BUG#22562 - REPAIR TABLE .. USE_FRM causes server crash on Windows and
|
|
|
|
# server hangs on Linux
|
|
|
|
#
|
|
|
|
CREATE TABLE t1(a INT);
|
|
|
|
USE mysql;
|
|
|
|
REPAIR TABLE test.t1 USE_FRM;
|
|
|
|
USE test;
|
|
|
|
DROP TABLE t1;
|
|
|
|
|
2006-10-18 14:57:29 +02:00
|
|
|
#
|
|
|
|
# BUG#23175 - MYISAM crash/repair failed during repair
|
|
|
|
#
|
|
|
|
CREATE TABLE t1(a CHAR(255), KEY(a));
|
|
|
|
SET myisam_sort_buffer_size=4096;
|
2013-05-10 11:32:34 +02:00
|
|
|
--replace_regex /Current myisam_sort_buffer_size.*/X/
|
2006-10-18 14:57:29 +02:00
|
|
|
INSERT INTO t1 VALUES
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0');
|
|
|
|
SET myisam_repair_threads=2;
|
2013-05-10 11:32:34 +02:00
|
|
|
--replace_regex /Current myisam_sort_buffer_size.*/X/
|
2006-10-18 14:57:29 +02:00
|
|
|
REPAIR TABLE t1;
|
|
|
|
SET myisam_repair_threads=@@global.myisam_repair_threads;
|
|
|
|
SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size;
|
|
|
|
DROP TABLE t1;
|
|
|
|
|
2007-10-11 12:28:12 +02:00
|
|
|
#
|
|
|
|
# BUG#31174 - "Repair" command on MyISAM crashes with small
|
|
|
|
# myisam_sort_buffer_size
|
|
|
|
#
|
|
|
|
CREATE TABLE t1(a CHAR(255), KEY(a));
|
2007-10-17 08:29:51 +02:00
|
|
|
SET myisam_sort_buffer_size=4496;
|
2007-10-11 12:28:12 +02:00
|
|
|
INSERT INTO t1 VALUES
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
|
|
|
|
('0'),('0'),('0'),('0'),('0'),('0'),('0');
|
|
|
|
SET myisam_repair_threads=2;
|
|
|
|
REPAIR TABLE t1;
|
|
|
|
SET myisam_repair_threads=@@global.myisam_repair_threads;
|
|
|
|
SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size;
|
|
|
|
DROP TABLE t1;
|
|
|
|
|
2018-01-23 11:24:53 +01:00
|
|
|
--echo # End of 4.1 tests
|
2008-05-12 18:01:13 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# BUG#36055 - mysql_upgrade doesn't really 'upgrade' tables
|
|
|
|
#
|
|
|
|
|
|
|
|
--echo # Test with a saved table from 4.1
|
2008-05-30 11:12:07 +02:00
|
|
|
let $MYSQLD_DATADIR= `select @@datadir`;
|
|
|
|
--copy_file std_data/bug36055.frm $MYSQLD_DATADIR/test/t1.frm
|
|
|
|
--copy_file std_data/bug36055.MYD $MYSQLD_DATADIR/test/t1.MYD
|
|
|
|
--copy_file std_data/bug36055.MYI $MYSQLD_DATADIR/test/t1.MYI
|
2008-05-12 18:01:13 +02:00
|
|
|
|
|
|
|
--replace_column 12 # 13 #
|
|
|
|
SHOW TABLE STATUS LIKE 't1';
|
|
|
|
SELECT * FROM t1;
|
|
|
|
|
|
|
|
--echo # Run CHECK TABLE, it should indicate table need a REPAIR TABLE
|
|
|
|
CHECK TABLE t1 FOR UPGRADE;
|
|
|
|
|
|
|
|
--echo # REPAIR old table USE_FRM should fail
|
|
|
|
REPAIR TABLE t1 USE_FRM;
|
|
|
|
|
|
|
|
--echo # Run REPAIR TABLE to upgrade .frm file
|
|
|
|
REPAIR TABLE t1;
|
|
|
|
--replace_column 12 # 13 #
|
|
|
|
SHOW TABLE STATUS LIKE 't1';
|
|
|
|
SELECT * FROM t1;
|
|
|
|
|
|
|
|
REPAIR TABLE t1 USE_FRM;
|
|
|
|
SELECT * FROM t1;
|
|
|
|
|
|
|
|
DROP TABLE t1;
|
2018-01-23 11:24:53 +01:00
|
|
|
|
|
|
|
--echo # End of 5.0 tests
|
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
The intermediate (not temporary) files of the new table
during ALTER TABLE was visible for SHOW TABLES. These
intermediate files are copies of the original table with
the changes done by ALTER TABLE. After all the data is
copied over from the original table, these files are renamed
to the original tables file names. So they are not temporary
files. They persist after ALTER TABLE, but just with another
name.
In 5.0 the intermediate files are invisible for SHOW TABLES
because all file names beginning with "#sql" were suppressed.
This failed since 5.1.6 because even temporary table names were
converted when making file names from them. The prefix became
converted to "@0023sql". Converting the prefix during SHOW TABLES
would suppress the listing of user tables that start with "#sql".
The solution of the problem is to continue the implementation of
the table name to file name conversion feature. One requirement
is to suppress the conversion for temporary table names.
This change is straightforward for real temporary tables as there
is a function that creates temporary file names.
But the generated path names are located in TMPDIR and have no
relation to the internal table name. This cannot be used for
ALTER TABLE. Its intermediate files need to be in the same
directory as the old table files. And it is necessary to be
able to deduce the same path from the same table name repeatedly.
Consequently the intermediate table files must be handled like normal
tables. Their internal names shall start with tmp_file_prefix
(#sql) and they shall not be converted like normal table names.
I added a flags parameter to all relevant functions that are
called from ALTER TABLE. It is used to suppress the conversion
for the intermediate table files.
The outcome is that the suppression of #sql in SHOW TABLES
works again. It does not suppress user tables as these are
converted to @0023sql on file level.
This patch does also fix ALTER TABLE ... RENAME, which could not
rename a table with non-ASCII characters in its name.
It does also fix the problem that a user could create a table like
`#sql-xxxx-yyyy`, where xxxx is mysqld's pid and yyyy is the thread
ID of some other thread, which prevented this thread from running
ALTER TABLE.
Some of the above problems are mentioned in Bug 1405, which can
be closed with this patch.
This patch does also contain some minor fixes for other forgotten
conversions. Still known problems are reported as bugs 21370,
21373, and 21387.
mysql-test/r/alter_table.result:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added test results.
mysql-test/r/backup.result:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added test results.
mysql-test/r/repair.result:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added test results.
mysql-test/t/alter_table.test:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added test cases.
mysql-test/t/backup.test:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added test cases.
mysql-test/t/repair.test:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added a test case.
sql/ha_myisam.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added missing table name mapping calls to backup() and restore().
sql/ha_myisammrg.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added an zero argument for the new 'flags' parameter.
sql/ha_ndbcluster.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added an zero argument for the new 'flags' parameter.
sql/ha_ndbcluster_binlog.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added an zero argument for the new 'flags' parameter.
sql/ha_ndbcluster_binlog.h:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Removed unnecessary check for wrong temp file prefix.
sql/mysql_priv.h:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Extended quick_rm_table(), mysql_rename_table(), and
build_table_filename() by an flags argument, which can indicate
temporary table names that should not be converted.
Added symbolic flag values.
sql/sql_acl.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added an zero argument for the new 'flags' parameter.
sql/sql_base.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Fixed a comment.
Added DBUG calls.
sql/sql_db.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added an zero argument for the new 'flags' parameter.
sql/sql_delete.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added an zero argument for the new 'flags' parameter.
sql/sql_insert.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added an zero argument for the new 'flags' parameter.
sql/sql_partition.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added an zero argument for the new 'flags' parameter.
sql/sql_rename.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added an zero argument for the new 'flags' parameter.
sql/sql_show.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Reverted the former fix for this bug. tmp_file_prefix is now used
verbatim in the comparison of file names.
sql/sql_table.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added a check for a tmp_file_prefix file name to
filename_to_tablename(). These names are now accepted without
conversion.
Extended quick_rm_table(), mysql_rename_table(), and
build_table_filename() by an flags argument, which can indicate
temporary table names that should not be converted.
Removed the table to file name conversion from
build_tmptable_filename().
Disabled REPAIR TABLE ... USE_FRM for temporary tables.
Added the forgotten conversion to mysql_alter_table() for the case
of ALTER TABLE ... RENAME.
Added comments and DBUG calls.
sql/sql_trigger.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added an zero argument for the new 'flags' parameter.
sql/sql_view.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Added an zero argument for the new 'flags' parameter.
sql/table.cc:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Replaced a literal ".frm" by reg_ext.
Added DBUG calls.
storage/innobase/row/row0mysql.c:
Bug#18775 - Temporary table from alter table visible to other threads
Continued implementation of WL#1324 (table name to filename encoding)
Changed back the encoded temp file prefix to #sql.
2006-08-02 17:57:06 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Bug#18775 - Temporary table from alter table visible to other threads
|
|
|
|
#
|
|
|
|
# REPAIR TABLE ... USE_FRM on temporary table crashed the table or server.
|
|
|
|
--disable_warnings
|
|
|
|
DROP TABLE IF EXISTS tt1;
|
|
|
|
--enable_warnings
|
|
|
|
CREATE TEMPORARY TABLE tt1 (c1 INT);
|
|
|
|
REPAIR TABLE tt1 USE_FRM;
|
|
|
|
DROP TABLE tt1;
|
|
|
|
|
2009-12-09 14:03:37 +01:00
|
|
|
|
|
|
|
--echo #
|
|
|
|
--echo # Bug #48248 assert in MDL_ticket::upgrade_shared_lock_to_exclusive
|
|
|
|
--echo #
|
|
|
|
|
|
|
|
--disable_warnings
|
|
|
|
DROP TABLE IF EXISTS t1;
|
|
|
|
--enable_warnings
|
|
|
|
|
|
|
|
CREATE TABLE t1(a INT);
|
|
|
|
LOCK TABLES t1 READ;
|
|
|
|
REPAIR TABLE t1;
|
|
|
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
DROP TABLE t1;
|
2010-02-03 06:32:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
--echo #
|
|
|
|
--echo # Test for bug #50784 "MDL: Assertion `m_tickets.is_empty() ||
|
|
|
|
--echo # m_tickets.front() == m_trans_sentinel'"
|
|
|
|
--echo #
|
|
|
|
--disable_warnings
|
|
|
|
drop tables if exists t1, t2;
|
|
|
|
--enable_warnings
|
|
|
|
create table t1 (i int);
|
|
|
|
create table t2 (j int);
|
|
|
|
set @@autocommit= 0;
|
|
|
|
repair table t1, t2;
|
|
|
|
set @@autocommit= default;
|
|
|
|
drop tables t1, t2;
|
2014-01-22 14:16:57 +01:00
|
|
|
|
|
|
|
--echo #
|
|
|
|
--echo # Check that we have decent error messages when using crashed
|
|
|
|
--echo # .frm file from MySQL 3.23
|
|
|
|
--echo #
|
|
|
|
|
|
|
|
--echo # Test with a saved table from 3.23
|
|
|
|
let $MYSQLD_DATADIR= `select @@datadir`;
|
2019-08-30 15:06:54 +02:00
|
|
|
|
|
|
|
SET @save_global_character_set_server= @@global.character_set_server;
|
|
|
|
set @@global.character_set_server=@@character_set_server;
|
2014-01-22 14:16:57 +01:00
|
|
|
--copy_file std_data/host_old.frm $MYSQLD_DATADIR/test/t1.frm
|
|
|
|
--copy_file std_data/host_old.MYD $MYSQLD_DATADIR/test/t1.MYD
|
|
|
|
--copy_file std_data/host_old.MYI $MYSQLD_DATADIR/test/t1.MYI
|
|
|
|
|
2014-02-01 00:54:03 +01:00
|
|
|
--error ER_GET_ERRNO
|
2014-01-22 14:16:57 +01:00
|
|
|
select count(*) from t1;
|
|
|
|
check table t1;
|
|
|
|
repair table t1;
|
|
|
|
repair table t1 use_frm;
|
|
|
|
select count(*) from t1;
|
|
|
|
check table t1;
|
|
|
|
drop table t1;
|
2015-05-07 22:18:34 +02:00
|
|
|
|
2019-08-30 15:06:54 +02:00
|
|
|
set @@global.character_set_server=@save_global_character_set_server;
|
|
|
|
|
2015-05-07 22:18:34 +02:00
|
|
|
#
|
|
|
|
# MDEV-8115 mysql_upgrade crashes the server with REPAIR VIEW
|
|
|
|
#
|
|
|
|
create table t1 (a blob);
|
|
|
|
create view v1 as select * from t1;
|
|
|
|
repair view v1;
|
|
|
|
drop view v1;
|
|
|
|
drop table t1;
|
2018-01-23 11:24:53 +01:00
|
|
|
|
|
|
|
--echo # End of 5.5 tests
|
|
|
|
|
|
|
|
#
|
|
|
|
# MDEV-11539 test_if_reopen: Assertion `strcmp(share->unique_file_name,filename) || share->last_version' failed upon select from I_S
|
|
|
|
#
|
|
|
|
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
|
|
|
INSERT t1 VALUES (1);
|
|
|
|
LOCK TABLE t1 WRITE;
|
|
|
|
REPAIR TABLE t1;
|
|
|
|
--disable_result_log
|
|
|
|
SELECT * FROM INFORMATION_SCHEMA.TABLES;
|
|
|
|
--enable_result_log
|
|
|
|
SELECT * FROM t1;
|
|
|
|
UNLOCK TABLES;
|
|
|
|
DROP TABLE t1;
|
|
|
|
|
|
|
|
--echo # End of 10.0 tests
|
2020-05-13 13:10:35 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# MDEV-17153 server crash on repair table ... use_frm
|
|
|
|
#
|
|
|
|
# Note, this test case doesn't crash, but shows spurios warnings
|
|
|
|
# unless the bug is fixed
|
|
|
|
#
|
|
|
|
create table t1 (a int, b varchar(200));
|
|
|
|
insert t1 select seq, repeat(200, seq) from seq_1_to_30;
|
|
|
|
delete from t1 where a % 13 = 0;
|
|
|
|
repair table t1 use_frm;
|
|
|
|
delete from t1 where a % 11 = 0;
|
|
|
|
repair table t1 extended use_frm;
|
|
|
|
delete from t1 where a % 7 = 0;
|
|
|
|
set myisam_repair_threads = 2;
|
|
|
|
repair table t1 use_frm;
|
|
|
|
set myisam_repair_threads = default;
|
|
|
|
drop table t1;
|
|
|
|
|
|
|
|
--echo # End of 10.2 tests
|