mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.10 into 10.11
This commit is contained in:
112
mysql-test/suite/rpl/include/rpl_parallel_29322.inc
Normal file
112
mysql-test/suite/rpl/include/rpl_parallel_29322.inc
Normal file
@@ -0,0 +1,112 @@
|
||||
# A "body" for rpl.rpl_parallel_29322 that runs having as input
|
||||
# the master and slave @@global.explicit_defaults_for_timestamp.
|
||||
#
|
||||
# The Key notes
|
||||
# -------------
|
||||
# On master: a sequence of binlog files is composed with
|
||||
# different server versions.
|
||||
# On slave: to first try enqueuing all master events.
|
||||
# Due to binlog files are from different version
|
||||
# servers when the new (of binlog 2) FD shows up the enqueuing
|
||||
# will hiccup as workers have to
|
||||
# process all events already scheduled (see wait_condition below).
|
||||
# This part proves of the different server version the binlogs
|
||||
# indeed are.
|
||||
# After the worker is unblocked the exection proceeds.
|
||||
#
|
||||
# In the end compare table definitions and print table data
|
||||
# to prove correctness.
|
||||
|
||||
--connection slave
|
||||
--source include/stop_slave.inc
|
||||
--let $master_use_gtid_option=No
|
||||
--source include/reset_slave.inc
|
||||
|
||||
--connection master
|
||||
--let $datadir= `SELECT @@datadir`
|
||||
|
||||
reset master; # Master starts a new serious of binlog files
|
||||
|
||||
create table t2 (a timestamp, b int);
|
||||
show create table t2;
|
||||
--save_master_pos
|
||||
|
||||
--connection slave
|
||||
--source include/start_slave.inc
|
||||
--sync_with_master
|
||||
--source include/stop_slave.inc
|
||||
|
||||
# load for two $same_version_binlogs branches
|
||||
--connection master
|
||||
if (!$same_version_binlogs)
|
||||
{
|
||||
insert into t2 values (null, 1);
|
||||
flush binary logs;
|
||||
flush binary logs;
|
||||
insert into t2 values (null, 2);
|
||||
}
|
||||
if ($same_version_binlogs)
|
||||
{
|
||||
--disable_query_log
|
||||
--let $count=8
|
||||
while ($count)
|
||||
{
|
||||
--let $queries=4
|
||||
while ($queries)
|
||||
{
|
||||
insert into t2 values (null, 1);
|
||||
--dec $queries
|
||||
}
|
||||
flush binary logs;
|
||||
flush binary logs;
|
||||
--dec $count
|
||||
}
|
||||
--enable_query_log
|
||||
}
|
||||
--save_master_pos
|
||||
|
||||
if (!$same_version_binlogs)
|
||||
{
|
||||
--move_file $datadir/master-bin.000002 $datadir/master-bin.000002.sav
|
||||
--copy_file $MYSQL_TEST_DIR/std_data/mdev29078-mysql-bin.000001 $datadir/master-bin.000002
|
||||
--exec $MYSQL_BINLOG --short-form $datadir/master-bin.000002
|
||||
|
||||
# To demonstrate different version binlogs, hold back worker
|
||||
# until the SQL thread state shows waiting.
|
||||
--connection slave1
|
||||
lock table t2 write;
|
||||
}
|
||||
|
||||
--connection slave
|
||||
--source include/start_slave.inc
|
||||
|
||||
if (!$same_version_binlogs)
|
||||
{
|
||||
--let $slave_waits_for=Waiting for worker threads to be idle
|
||||
--let $wait_condition= SELECT COUNT(*) > 0 FROM information_schema.processlist WHERE state = "$slave_waits_for"
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--connection slave1
|
||||
unlock tables;
|
||||
|
||||
--connection slave
|
||||
--sync_with_master
|
||||
show create table t1;
|
||||
set statement time_zone='+2:00' for select * from t1;
|
||||
drop table t1;
|
||||
|
||||
--connection master
|
||||
--remove_file $datadir/master-bin.000002
|
||||
--move_file $datadir/master-bin.000002.sav $datadir/master-bin.000002
|
||||
}
|
||||
|
||||
--connection slave
|
||||
--sync_with_master
|
||||
show create table t2;
|
||||
--let $diff_tables=master:t2,slave:t2
|
||||
--source include/diff_tables.inc
|
||||
|
||||
--connection master
|
||||
drop table t2;
|
||||
|
||||
--sync_slave_with_master
|
@@ -14,7 +14,7 @@ SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection default;
|
||||
set session lock_wait_timeout=1;
|
||||
SELECT f1();
|
||||
|
@@ -114,7 +114,7 @@ show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`new_table` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection server_1;
|
||||
drop table t1;
|
||||
#
|
||||
@@ -191,7 +191,7 @@ show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`server_2_ver_2` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
binlog from server 2
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
|
@@ -140,7 +140,7 @@ show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`new_table` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection server_1;
|
||||
drop table t1;
|
||||
#
|
||||
@@ -217,7 +217,7 @@ show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`server_2_ver_2` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
binlog from server 2
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
|
@@ -114,7 +114,7 @@ show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`new_table` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection server_1;
|
||||
drop table t1;
|
||||
#
|
||||
@@ -191,7 +191,7 @@ show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`server_2_ver_2` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
binlog from server 2
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
|
@@ -18,7 +18,7 @@ show create table t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
show create table t1;
|
||||
ERROR 42S02: Table 'test.t1' doesn't exist
|
||||
show create table t3;
|
||||
|
@@ -11,7 +11,7 @@ SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TEMPORARY TABLE `t1` (
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
CREATE VIEW v AS SELECT * FROM t1;
|
||||
ERROR HY000: View's SELECT refers to a temporary table 't1'
|
||||
RENAME TABLE t1 TO tmp, t1 TO t2;
|
||||
@@ -19,12 +19,12 @@ SHOW CREATE TABLE tmp;
|
||||
Table Create Table
|
||||
tmp CREATE TEMPORARY TABLE `tmp` (
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
CREATE VIEW v AS SELECT * FROM tmp;
|
||||
ERROR HY000: View's SELECT refers to a temporary table 'tmp'
|
||||
CREATE VIEW v AS SELECT * FROM t2;
|
||||
|
@@ -29,7 +29,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(10) unsigned NOT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
insert into t1 (a) values (1),((1<<32)-1);
|
||||
select * from t1;
|
||||
a b
|
||||
@@ -42,7 +42,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` bigint(20) NOT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
select * from t1;
|
||||
a b
|
||||
1 NULL
|
||||
@@ -54,7 +54,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(10) unsigned NOT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
select * from t1;
|
||||
a b
|
||||
1 NULL
|
||||
@@ -66,7 +66,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` bigint(20) unsigned NOT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
select * from t1;
|
||||
a b
|
||||
1 NULL
|
||||
@@ -83,7 +83,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` bigint(20) unsigned NOT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
create table t2 (a int unsigned auto_increment primary key, b int);
|
||||
show create table t2;
|
||||
@@ -92,7 +92,7 @@ t2 CREATE TABLE `t2` (
|
||||
`a` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
alter table t2 modify a bigint;
|
||||
show create table t2;
|
||||
Table Create Table
|
||||
@@ -100,7 +100,7 @@ t2 CREATE TABLE `t2` (
|
||||
`a` bigint(20) NOT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
alter table t2 modify a bigint auto_increment;
|
||||
show create table t2;
|
||||
Table Create Table
|
||||
@@ -108,7 +108,7 @@ t2 CREATE TABLE `t2` (
|
||||
`a` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table t1,t2;
|
||||
#
|
||||
# MDEV-8432: Slave cannot replicate signed integer-type values
|
||||
|
@@ -251,14 +251,14 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`id` mediumint(9) NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`id` mediumint(9) NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
drop table t1;
|
||||
include/rpl_reset.inc
|
||||
|
@@ -7,7 +7,7 @@ SHOW CREATE TABLE tinnodb;
|
||||
Table Create Table
|
||||
tinnodb CREATE TABLE `tinnodb` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
set @old_debug= @@debug;
|
||||
set @@debug_dbug= 'd,do_not_write_xid';
|
||||
==== Test ====
|
||||
|
@@ -6,17 +6,17 @@ set @@character_set_server=latin5;
|
||||
create database mysqltest3;
|
||||
show create database mysqltest2;
|
||||
Database Create Database
|
||||
mysqltest2 CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET latin2 */
|
||||
mysqltest2 CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET latin2 COLLATE latin2_general_ci */
|
||||
show create database mysqltest3;
|
||||
Database Create Database
|
||||
mysqltest3 CREATE DATABASE `mysqltest3` /*!40100 DEFAULT CHARACTER SET latin5 */
|
||||
mysqltest3 CREATE DATABASE `mysqltest3` /*!40100 DEFAULT CHARACTER SET latin5 COLLATE latin5_turkish_ci */
|
||||
connection slave;
|
||||
show create database mysqltest2;
|
||||
Database Create Database
|
||||
mysqltest2 CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET latin2 */
|
||||
mysqltest2 CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET latin2 COLLATE latin2_general_ci */
|
||||
show create database mysqltest3;
|
||||
Database Create Database
|
||||
mysqltest3 CREATE DATABASE `mysqltest3` /*!40100 DEFAULT CHARACTER SET latin5 */
|
||||
mysqltest3 CREATE DATABASE `mysqltest3` /*!40100 DEFAULT CHARACTER SET latin5 COLLATE latin5_turkish_ci */
|
||||
connection master;
|
||||
set @@collation_server=armscii8_bin;
|
||||
drop database mysqltest3;
|
||||
@@ -135,7 +135,7 @@ connection slave;
|
||||
SHOW CREATE TABLE db1.t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`CHR(0x60)` varchar(4) COLLATE latin1_bin DEFAULT NULL
|
||||
`CHR(0x60)` varchar(4) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin
|
||||
connection master;
|
||||
USE test;
|
||||
|
@@ -120,7 +120,7 @@ t1 CREATE TABLE `t1` (
|
||||
`b` varchar(100) DEFAULT NULL,
|
||||
`c` varchar(300) DEFAULT NULL,
|
||||
`d` char(5) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
Insert some values and select them on slave
|
||||
SELECT * FROM t1;
|
||||
@@ -133,7 +133,7 @@ t1 CREATE TABLE `t1` (
|
||||
`b` varchar(400) DEFAULT NULL,
|
||||
`c` varchar(500) DEFAULT NULL,
|
||||
`d` char(100) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
DROP TABLE t1;
|
||||
Create bit table on master
|
||||
@@ -174,7 +174,7 @@ t1 CREATE TABLE `t1` (
|
||||
`c` bit(21) DEFAULT NULL,
|
||||
`d` bit(11) DEFAULT NULL,
|
||||
`e` bit(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
Insert some values and select them on master
|
||||
SELECT BIN(a), BIN(b), BIN(c), BIN(d), BIN(e) FROM t1;
|
||||
@@ -188,7 +188,7 @@ t1 CREATE TABLE `t1` (
|
||||
`c` bit(54) DEFAULT NULL,
|
||||
`d` bit(25) DEFAULT NULL,
|
||||
`e` bit(13) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
*** Cleanup ***
|
||||
connection master;
|
||||
DROP TABLE t1;
|
||||
|
@@ -9,7 +9,7 @@ ERROR 42000: FUNCTION hello already exists
|
||||
connection slave;
|
||||
SHOW CREATE FUNCTION hello;
|
||||
Function sql_mode Create Function character_set_client collation_connection Database Collation
|
||||
hello STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `hello`(str CHAR(20)) RETURNS char(50) CHARSET latin1
|
||||
hello STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `hello`(str CHAR(20)) RETURNS char(50) CHARSET latin1 COLLATE latin1_swedish_ci
|
||||
DETERMINISTIC
|
||||
RETURN
|
||||
CONCAT('Hello, ', str, '!') latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
|
@@ -11,7 +11,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
KEY `i1` (`a`,`b`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
@@ -19,7 +19,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
KEY `i1` (`a`,`b`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
DROP TABLE t1;
|
||||
connection slave;
|
||||
include/rpl_end.inc
|
||||
|
@@ -11,18 +11,18 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL,
|
||||
KEY `a` (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t3;
|
||||
Table Create Table
|
||||
t3 CREATE TABLE `t3` (
|
||||
`a` int(11) NOT NULL,
|
||||
KEY `a` (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW VARIABLES LIKE 'slave_transaction_retries';
|
||||
Variable_name Value
|
||||
slave_transaction_retries 2
|
||||
|
@@ -11,7 +11,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT (1 + 1),
|
||||
`b` bigint(20) DEFAULT uuid_short(),
|
||||
`u` blob DEFAULT user()
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
a uuid user
|
||||
1 1 1
|
||||
connection master;
|
||||
|
@@ -135,7 +135,7 @@ GRANT EXECUTE, ALTER ROUTINE ON FUNCTION `bug42217_db`.`upgrade_del_func` TO `cr
|
||||
USE bug42217_db;
|
||||
SHOW CREATE FUNCTION upgrade_del_func;
|
||||
Function sql_mode Create Function character_set_client collation_connection Database Collation
|
||||
upgrade_del_func STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`create_rout_db`@`localhost` FUNCTION `upgrade_del_func`() RETURNS char(30) CHARSET latin1
|
||||
upgrade_del_func STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`create_rout_db`@`localhost` FUNCTION `upgrade_del_func`() RETURNS char(30) CHARSET latin1 COLLATE latin1_swedish_ci
|
||||
BEGIN
|
||||
RETURN "INSIDE upgrade_del_func()";
|
||||
END latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
@@ -147,7 +147,7 @@ connection create_rout_db_slave;
|
||||
USE bug42217_db;
|
||||
SHOW CREATE FUNCTION upgrade_del_func;
|
||||
Function sql_mode Create Function character_set_client collation_connection Database Collation
|
||||
upgrade_del_func STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`create_rout_db`@`localhost` FUNCTION `upgrade_del_func`() RETURNS char(30) CHARSET latin1
|
||||
upgrade_del_func STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`create_rout_db`@`localhost` FUNCTION `upgrade_del_func`() RETURNS char(30) CHARSET latin1 COLLATE latin1_swedish_ci
|
||||
BEGIN
|
||||
RETURN "INSIDE upgrade_del_func()";
|
||||
END latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
@@ -176,7 +176,7 @@ INSIDE upgrade_alter_func()
|
||||
connection slave;
|
||||
SHOW CREATE FUNCTION upgrade_alter_func;
|
||||
Function sql_mode Create Function character_set_client collation_connection Database Collation
|
||||
upgrade_alter_func STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`create_rout_db`@`localhost` FUNCTION `upgrade_alter_func`() RETURNS char(30) CHARSET latin1
|
||||
upgrade_alter_func STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`create_rout_db`@`localhost` FUNCTION `upgrade_alter_func`() RETURNS char(30) CHARSET latin1 COLLATE latin1_swedish_ci
|
||||
BEGIN
|
||||
RETURN "INSIDE upgrade_alter_func()";
|
||||
END latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
|
@@ -9,8 +9,8 @@ connection slave;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`TABLE_NAME` varchar(64) CHARACTER SET utf8mb3 NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
`TABLE_NAME` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
DROP TABLE t1;
|
||||
include/rpl_end.inc
|
||||
|
@@ -663,7 +663,7 @@ t16 CREATE TABLE `t16` (
|
||||
`c4` blob DEFAULT NULL,
|
||||
`c5` char(5) DEFAULT NULL,
|
||||
PRIMARY KEY (`c1`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY KEY (`c1`)
|
||||
PARTITIONS 4
|
||||
*** Show table on Slave ****
|
||||
@@ -679,7 +679,7 @@ t16 CREATE TABLE `t16` (
|
||||
`c6` int(11) DEFAULT 1,
|
||||
`c7` timestamp NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`c1`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY KEY (`c1`)
|
||||
PARTITIONS 4
|
||||
*** DROP TABLE t16 ***
|
||||
|
@@ -663,7 +663,7 @@ t16 CREATE TABLE `t16` (
|
||||
`c4` blob DEFAULT NULL,
|
||||
`c5` char(5) DEFAULT NULL,
|
||||
PRIMARY KEY (`c1`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY KEY (`c1`)
|
||||
PARTITIONS 4
|
||||
*** Show table on Slave ****
|
||||
@@ -679,7 +679,7 @@ t16 CREATE TABLE `t16` (
|
||||
`c6` int(11) DEFAULT 1,
|
||||
`c7` timestamp NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`c1`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY KEY (`c1`)
|
||||
PARTITIONS 4
|
||||
*** DROP TABLE t16 ***
|
||||
|
@@ -144,7 +144,7 @@ Table t3
|
||||
Create Table CREATE TABLE `t3` (
|
||||
`a` int(11) NOT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
INSERT INTO t1 VALUES (8);
|
||||
connection server_1;
|
||||
INSERT INTO t2 VALUES (3);
|
||||
|
@@ -199,7 +199,7 @@ SHOW CREATE TABLE t3;
|
||||
Table Create Table
|
||||
t3 CREATE TABLE `t3` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/start_slave.inc
|
||||
*** Test UNTIL condition that has not yet been logged. ***
|
||||
connection server_2;
|
||||
|
@@ -132,7 +132,7 @@ Create Table CREATE TABLE `byrange_tbl` (
|
||||
`fkid` mediumint(9) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1001 DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1001 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY RANGE (`id`)
|
||||
SUBPARTITION BY HASH (`id`)
|
||||
SUBPARTITIONS 2
|
||||
|
@@ -55,7 +55,7 @@ t1 CREATE TABLE `t1` (
|
||||
`b` char(254) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `index1` (`b`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
@@ -63,7 +63,7 @@ t2 CREATE TABLE `t2` (
|
||||
`b` char(254) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `index1` (`b`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
USE test_rpl;
|
||||
SHOW CREATE TABLE t1;
|
||||
@@ -73,7 +73,7 @@ t1 CREATE TABLE `t1` (
|
||||
`b` char(254) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `index1` (`b`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
@@ -81,7 +81,7 @@ t2 CREATE TABLE `t2` (
|
||||
`b` char(254) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `index1` (`b`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
|
||||
******************** DDL for indexes ********************
|
||||
@@ -95,7 +95,7 @@ t1 CREATE TABLE `t1` (
|
||||
`b` char(254) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `index1` (`b`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
@@ -106,7 +106,7 @@ t2 CREATE TABLE `t2` (
|
||||
KEY `index1` (`b`),
|
||||
KEY `index2` (`d`),
|
||||
KEY `index3` (`a`,`d`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
USE test_rpl;
|
||||
SHOW CREATE TABLE t1;
|
||||
@@ -116,7 +116,7 @@ t1 CREATE TABLE `t1` (
|
||||
`b` char(254) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `index1` (`b`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
@@ -127,7 +127,7 @@ t2 CREATE TABLE `t2` (
|
||||
KEY `index1` (`b`),
|
||||
KEY `index2` (`d`),
|
||||
KEY `index3` (`a`,`d`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
ALTER TABLE t2 DROP COLUMN d;
|
||||
|
||||
|
@@ -40,13 +40,13 @@ t3 CREATE TABLE `t3` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`created` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
show create table t5;
|
||||
Table Create Table
|
||||
t5 CREATE TABLE `t5` (
|
||||
`id` int(11) NOT NULL DEFAULT 0,
|
||||
`created` datetime DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
drop table t2,t3,t5;
|
||||
drop temporary table t4;
|
||||
|
@@ -227,7 +227,7 @@ master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO tt_1(ddl_case) VALUES (22)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION `fc`() RETURNS varchar(64) CHARSET latin1
|
||||
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION `fc`() RETURNS varchar(64) CHARSET latin1 COLLATE latin1_swedish_ci
|
||||
RETURN "fc"
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO tt_1(ddl_case) VALUES (21)
|
||||
|
@@ -23,7 +23,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
connection slave;
|
||||
alter table t1 engine=myisam;
|
||||
@@ -40,7 +40,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@@ -82,7 +82,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@@ -124,7 +124,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@@ -166,7 +166,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
connection slave;
|
||||
alter table t1 engine=myisam;
|
||||
@@ -183,7 +183,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@@ -225,7 +225,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@@ -267,7 +267,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@@ -309,7 +309,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
connection slave;
|
||||
alter table t1 engine=myisam;
|
||||
@@ -326,7 +326,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@@ -368,7 +368,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
@@ -410,7 +410,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14");
|
||||
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
|
||||
|
@@ -35,7 +35,7 @@ slow_log CREATE TABLE `slow_log` (
|
||||
`insert_id` int(11) NOT NULL,
|
||||
`server_id` int(10) unsigned NOT NULL,
|
||||
`sql_text` mediumtext NOT NULL
|
||||
) ENGINE=CSV DEFAULT CHARSET=utf8mb3 COMMENT='Slow log'
|
||||
) ENGINE=CSV DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Slow log'
|
||||
connection master;
|
||||
connection master;
|
||||
Master position has been changed
|
||||
@@ -57,7 +57,7 @@ slow_log CREATE TABLE `slow_log` (
|
||||
`sql_text` mediumtext NOT NULL,
|
||||
`thread_id` bigint(21) unsigned NOT NULL,
|
||||
`rows_affected` int(11) NOT NULL
|
||||
) ENGINE=CSV DEFAULT CHARSET=utf8mb3 COMMENT='Slow log'
|
||||
) ENGINE=CSV DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='Slow log'
|
||||
SET GLOBAL general_log = 'OFF';
|
||||
SET GLOBAL slow_query_log = 'OFF';
|
||||
truncate mysql.slow_log;
|
||||
|
@@ -55,12 +55,12 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`f2` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
show create table t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
set time_zone='+2:00';
|
||||
select * from t1;
|
||||
f1 f2
|
||||
@@ -78,12 +78,12 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` timestamp NULL DEFAULT NULL,
|
||||
`f2` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
show create table t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
select * from t1;
|
||||
f1 f2
|
||||
NULL NULL
|
||||
|
242
mysql-test/suite/rpl/r/rpl_parallel_29322.result
Normal file
242
mysql-test/suite/rpl/r/rpl_parallel_29322.result
Normal file
@@ -0,0 +1,242 @@
|
||||
#
|
||||
# MDEV-29322 ASAN use-after-free options_written_to_bin_log
|
||||
#
|
||||
include/master-slave.inc
|
||||
[connection master]
|
||||
# A. set the master and slave explicit_defaults_for_timestamp values crisscross to (1,0)
|
||||
connection master;
|
||||
set @sav.explicit_defaults_for_timestamp = @@session.explicit_defaults_for_timestamp;
|
||||
set @@session.explicit_defaults_for_timestamp = 1;
|
||||
connection slave;
|
||||
set @sav.explicit_defaults_for_timestamp = @@global.explicit_defaults_for_timestamp;
|
||||
set global explicit_defaults_for_timestamp = 0;
|
||||
set @sav.slave_parallel_workers = @@global.slave_parallel_workers;
|
||||
include/stop_slave.inc
|
||||
set @@global.slave_parallel_workers = 1;
|
||||
include/start_slave.inc
|
||||
connection slave;
|
||||
include/stop_slave.inc
|
||||
include/reset_slave.inc
|
||||
connection master;
|
||||
reset master;
|
||||
create table t2 (a timestamp, b int);
|
||||
show create table t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NULL DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
include/start_slave.inc
|
||||
include/stop_slave.inc
|
||||
connection master;
|
||||
insert into t2 values (null, 1);
|
||||
flush binary logs;
|
||||
flush binary logs;
|
||||
insert into t2 values (null, 2);
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
ROLLBACK/*!*/;
|
||||
use `test`/*!*/;
|
||||
SET TIMESTAMP=1658586280/*!*/;
|
||||
SET @@session.pseudo_thread_id=999999999/*!*/;
|
||||
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
|
||||
SET @@session.sql_mode=1411383296/*!*/;
|
||||
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
|
||||
/*!\C utf8mb3 *//*!*/;
|
||||
SET @@session.character_set_client=33,@@session.collation_connection=33,@@session.collation_server=8/*!*/;
|
||||
SET @@session.lc_time_names=0/*!*/;
|
||||
SET @@session.collation_database=DEFAULT/*!*/;
|
||||
create table t1 (f1 timestamp, f2 timestamp)
|
||||
/*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
SET TIMESTAMP=1658586288/*!*/;
|
||||
insert t1 values (NULL, NULL)
|
||||
/*!*/;
|
||||
SET TIMESTAMP=1658586288/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
SET TIMESTAMP=1658586335/*!*/;
|
||||
insert t1 () values ()
|
||||
/*!*/;
|
||||
SET TIMESTAMP=1658586335/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
DELIMITER ;
|
||||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
connection slave1;
|
||||
lock table t2 write;
|
||||
connection slave;
|
||||
include/start_slave.inc
|
||||
connection slave1;
|
||||
unlock tables;
|
||||
connection slave;
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` timestamp NULL DEFAULT NULL,
|
||||
`f2` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
set statement time_zone='+2:00' for select * from t1;
|
||||
f1 f2
|
||||
NULL NULL
|
||||
NULL NULL
|
||||
drop table t1;
|
||||
connection master;
|
||||
connection slave;
|
||||
show create table t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NULL DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/diff_tables.inc [master:t2,slave:t2]
|
||||
connection master;
|
||||
drop table t2;
|
||||
connection slave;
|
||||
# B. alternate the master and slave vars' values to (0,1)
|
||||
connection master;
|
||||
set @@session.explicit_defaults_for_timestamp = 0;
|
||||
connection slave;
|
||||
set @@global.explicit_defaults_for_timestamp = 1;
|
||||
connection slave;
|
||||
include/stop_slave.inc
|
||||
include/reset_slave.inc
|
||||
Warnings:
|
||||
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
|
||||
connection master;
|
||||
reset master;
|
||||
create table t2 (a timestamp, b int);
|
||||
show create table t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
include/start_slave.inc
|
||||
include/stop_slave.inc
|
||||
connection master;
|
||||
insert into t2 values (null, 1);
|
||||
flush binary logs;
|
||||
flush binary logs;
|
||||
insert into t2 values (null, 2);
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
ROLLBACK/*!*/;
|
||||
use `test`/*!*/;
|
||||
SET TIMESTAMP=1658586280/*!*/;
|
||||
SET @@session.pseudo_thread_id=999999999/*!*/;
|
||||
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
|
||||
SET @@session.sql_mode=1411383296/*!*/;
|
||||
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
|
||||
/*!\C utf8mb3 *//*!*/;
|
||||
SET @@session.character_set_client=33,@@session.collation_connection=33,@@session.collation_server=8/*!*/;
|
||||
SET @@session.lc_time_names=0/*!*/;
|
||||
SET @@session.collation_database=DEFAULT/*!*/;
|
||||
create table t1 (f1 timestamp, f2 timestamp)
|
||||
/*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
SET TIMESTAMP=1658586288/*!*/;
|
||||
insert t1 values (NULL, NULL)
|
||||
/*!*/;
|
||||
SET TIMESTAMP=1658586288/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
SET TIMESTAMP=1658586335/*!*/;
|
||||
insert t1 () values ()
|
||||
/*!*/;
|
||||
SET TIMESTAMP=1658586335/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
DELIMITER ;
|
||||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
connection slave1;
|
||||
lock table t2 write;
|
||||
connection slave;
|
||||
include/start_slave.inc
|
||||
connection slave1;
|
||||
unlock tables;
|
||||
connection slave;
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`f2` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
set statement time_zone='+2:00' for select * from t1;
|
||||
f1 f2
|
||||
2022-07-23 16:24:48 2022-07-23 16:24:48
|
||||
2022-07-23 16:25:35 0000-00-00 00:00:00
|
||||
drop table t1;
|
||||
connection master;
|
||||
connection slave;
|
||||
show create table t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/diff_tables.inc [master:t2,slave:t2]
|
||||
connection master;
|
||||
drop table t2;
|
||||
connection slave;
|
||||
# C. the bug case on the same version binlogs also to demo on the patch's base
|
||||
include/stop_slave.inc
|
||||
set @@global.slave_parallel_workers = 4;
|
||||
include/start_slave.inc
|
||||
connection slave;
|
||||
include/stop_slave.inc
|
||||
include/reset_slave.inc
|
||||
Warnings:
|
||||
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos'
|
||||
connection master;
|
||||
reset master;
|
||||
create table t2 (a timestamp, b int);
|
||||
show create table t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
include/start_slave.inc
|
||||
include/stop_slave.inc
|
||||
connection master;
|
||||
connection slave;
|
||||
include/start_slave.inc
|
||||
connection slave;
|
||||
show create table t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/diff_tables.inc [master:t2,slave:t2]
|
||||
connection master;
|
||||
drop table t2;
|
||||
connection slave;
|
||||
connection master;
|
||||
set @@session.explicit_defaults_for_timestamp = @sav.explicit_defaults_for_timestamp;
|
||||
connection slave;
|
||||
set @@global.explicit_defaults_for_timestamp = @sav.explicit_defaults_for_timestamp;
|
||||
include/stop_slave.inc
|
||||
set @@global.slave_parallel_workers = @sav.slave_parallel_workers;
|
||||
include/start_slave.inc
|
||||
include/rpl_end.inc
|
@@ -11,9 +11,9 @@ SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(100) CHARACTER SET utf8mb3 DEFAULT NULL,
|
||||
`b` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SET character_set_client=latin1;
|
||||
INSERT INTO t1 VALUES (1, 'R<>dgr<67>d med fl<66>de 1');
|
||||
INSERT INTO t1 VALUES (2, 'R<>dgr<67>d med fl<66>de 2');
|
||||
|
@@ -61,7 +61,7 @@ byrange_tbl CREATE TABLE `byrange_tbl` (
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY RANGE (`id`)
|
||||
(PARTITION `pa100` VALUES LESS THAN (100) ENGINE = InnoDB,
|
||||
PARTITION `paMax` VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
|
||||
@@ -75,7 +75,7 @@ regular_tbl CREATE TABLE `regular_tbl` (
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
ALTER TABLE test.byrange_tbl EXCHANGE PARTITION pa100 WITH TABLE test.regular_tbl;
|
||||
SELECT * FROM test.byrange_tbl ORDER BY fkid LIMIT 2;
|
||||
id dt user uuidf fkid filler
|
||||
@@ -105,7 +105,7 @@ byrange_tbl CREATE TABLE `byrange_tbl` (
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY RANGE (`id`)
|
||||
(PARTITION `pa100` VALUES LESS THAN (100) ENGINE = InnoDB,
|
||||
PARTITION `paMax` VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
|
||||
@@ -119,7 +119,7 @@ regular_tbl CREATE TABLE `regular_tbl` (
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SELECT count(*) "Slave norm" FROM test.regular_tbl;
|
||||
Slave norm
|
||||
99
|
||||
|
@@ -61,7 +61,7 @@ byrange_tbl CREATE TABLE `byrange_tbl` (
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MEMORY AUTO_INCREMENT=201 DEFAULT CHARSET=latin1
|
||||
) ENGINE=MEMORY AUTO_INCREMENT=201 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY RANGE (`id`)
|
||||
(PARTITION `pa100` VALUES LESS THAN (100) ENGINE = MEMORY,
|
||||
PARTITION `paMax` VALUES LESS THAN MAXVALUE ENGINE = MEMORY)
|
||||
@@ -75,7 +75,7 @@ regular_tbl CREATE TABLE `regular_tbl` (
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MEMORY AUTO_INCREMENT=100 DEFAULT CHARSET=latin1
|
||||
) ENGINE=MEMORY AUTO_INCREMENT=100 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
ALTER TABLE test.byrange_tbl EXCHANGE PARTITION pa100 WITH TABLE test.regular_tbl;
|
||||
SELECT * FROM test.byrange_tbl ORDER BY fkid LIMIT 2;
|
||||
id dt user uuidf fkid filler
|
||||
@@ -105,7 +105,7 @@ byrange_tbl CREATE TABLE `byrange_tbl` (
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MEMORY AUTO_INCREMENT=201 DEFAULT CHARSET=latin1
|
||||
) ENGINE=MEMORY AUTO_INCREMENT=201 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY RANGE (`id`)
|
||||
(PARTITION `pa100` VALUES LESS THAN (100) ENGINE = MEMORY,
|
||||
PARTITION `paMax` VALUES LESS THAN MAXVALUE ENGINE = MEMORY)
|
||||
@@ -119,7 +119,7 @@ regular_tbl CREATE TABLE `regular_tbl` (
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MEMORY AUTO_INCREMENT=100 DEFAULT CHARSET=latin1
|
||||
) ENGINE=MEMORY AUTO_INCREMENT=100 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SELECT count(*) "Slave norm" FROM test.regular_tbl;
|
||||
Slave norm
|
||||
99
|
||||
|
@@ -61,7 +61,7 @@ byrange_tbl CREATE TABLE `byrange_tbl` (
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=201 DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=201 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY RANGE (`id`)
|
||||
(PARTITION `pa100` VALUES LESS THAN (100) ENGINE = MyISAM,
|
||||
PARTITION `paMax` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
|
||||
@@ -75,7 +75,7 @@ regular_tbl CREATE TABLE `regular_tbl` (
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=100 DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=100 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
ALTER TABLE test.byrange_tbl EXCHANGE PARTITION pa100 WITH TABLE test.regular_tbl;
|
||||
SELECT * FROM test.byrange_tbl ORDER BY fkid LIMIT 2;
|
||||
id dt user uuidf fkid filler
|
||||
@@ -105,7 +105,7 @@ byrange_tbl CREATE TABLE `byrange_tbl` (
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=201 DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=201 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY RANGE (`id`)
|
||||
(PARTITION `pa100` VALUES LESS THAN (100) ENGINE = MyISAM,
|
||||
PARTITION `paMax` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
|
||||
@@ -119,7 +119,7 @@ regular_tbl CREATE TABLE `regular_tbl` (
|
||||
`fkid` int(11) DEFAULT NULL,
|
||||
`filler` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=100 DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=100 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SELECT count(*) "Slave norm" FROM test.regular_tbl;
|
||||
Slave norm
|
||||
99
|
||||
|
@@ -99,12 +99,12 @@ show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
show create table t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
insert into t1 values(1005);
|
||||
insert into t2 values(2005);
|
||||
|
@@ -31,7 +31,7 @@ t1 CREATE TABLE `t1` (
|
||||
`blob_column` longblob DEFAULT NULL,
|
||||
`vchar_column` varchar(100) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
DROP PROCEDURE test.p1;
|
||||
DROP FUNCTION test.fn1;
|
||||
|
@@ -27,7 +27,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned DEFAULT NULL,
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY RANGE (year(`t`))
|
||||
(PARTITION `p0` VALUES LESS THAN (1901) ENGINE = MyISAM,
|
||||
PARTITION `p1` VALUES LESS THAN (1946) ENGINE = MyISAM,
|
||||
@@ -48,7 +48,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned DEFAULT NULL,
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY RANGE (year(`t`))
|
||||
(PARTITION `p0` VALUES LESS THAN (1901) ENGINE = MyISAM,
|
||||
PARTITION `p1` VALUES LESS THAN (1946) ENGINE = MyISAM,
|
||||
@@ -115,7 +115,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned DEFAULT NULL,
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY RANGE (year(`t`))
|
||||
(PARTITION `p0` VALUES LESS THAN (1901) ENGINE = MyISAM,
|
||||
PARTITION `p1` VALUES LESS THAN (1946) ENGINE = MyISAM,
|
||||
@@ -136,7 +136,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned DEFAULT NULL,
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY RANGE (year(`t`))
|
||||
(PARTITION `p0` VALUES LESS THAN (1901) ENGINE = MyISAM,
|
||||
PARTITION `p1` VALUES LESS THAN (1946) ENGINE = MyISAM,
|
||||
@@ -212,7 +212,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned DEFAULT NULL,
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY LIST (`id`)
|
||||
(PARTITION `p0` VALUES IN (2,4) ENGINE = MyISAM,
|
||||
PARTITION `p1` VALUES IN (42,142) ENGINE = MyISAM,
|
||||
@@ -230,7 +230,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned DEFAULT NULL,
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY LIST (`id`)
|
||||
(PARTITION `p0` VALUES IN (2,4) ENGINE = MyISAM,
|
||||
PARTITION `p1` VALUES IN (42,142) ENGINE = MyISAM,
|
||||
@@ -294,7 +294,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned DEFAULT NULL,
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY LIST (`id`)
|
||||
(PARTITION `p0` VALUES IN (2,4) ENGINE = MyISAM,
|
||||
PARTITION `p1` VALUES IN (42,142) ENGINE = MyISAM,
|
||||
@@ -312,7 +312,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned DEFAULT NULL,
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY LIST (`id`)
|
||||
(PARTITION `p0` VALUES IN (2,4) ENGINE = MyISAM,
|
||||
PARTITION `p1` VALUES IN (42,142) ENGINE = MyISAM,
|
||||
@@ -383,7 +383,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned DEFAULT NULL,
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY HASH (year(`t`))
|
||||
PARTITIONS 4
|
||||
connection slave;
|
||||
@@ -399,7 +399,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned DEFAULT NULL,
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY HASH (year(`t`))
|
||||
PARTITIONS 4
|
||||
connection master;
|
||||
@@ -460,7 +460,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned DEFAULT NULL,
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY HASH (year(`t`))
|
||||
PARTITIONS 4
|
||||
connection slave;
|
||||
@@ -476,7 +476,7 @@ t1 CREATE TABLE `t1` (
|
||||
`total` bigint(20) unsigned DEFAULT NULL,
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY HASH (year(`t`))
|
||||
PARTITIONS 4
|
||||
connection master;
|
||||
@@ -546,7 +546,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY KEY ()
|
||||
PARTITIONS 4
|
||||
connection slave;
|
||||
@@ -563,7 +563,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY KEY ()
|
||||
PARTITIONS 4
|
||||
connection master;
|
||||
@@ -626,7 +626,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL,
|
||||
PRIMARY KEY (`id`,`total`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY KEY ()
|
||||
PARTITIONS 4
|
||||
connection slave;
|
||||
@@ -643,7 +643,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL,
|
||||
PRIMARY KEY (`id`,`total`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY KEY ()
|
||||
PARTITIONS 4
|
||||
connection master;
|
||||
@@ -706,7 +706,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL,
|
||||
PRIMARY KEY (`id`,`total`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY KEY ()
|
||||
PARTITIONS 4
|
||||
connection slave;
|
||||
@@ -723,7 +723,7 @@ t1 CREATE TABLE `t1` (
|
||||
`y` year(4) DEFAULT NULL,
|
||||
`t` date DEFAULT NULL,
|
||||
PRIMARY KEY (`id`,`total`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
PARTITION BY KEY ()
|
||||
PARTITIONS 4
|
||||
connection master;
|
||||
|
@@ -15,7 +15,7 @@ SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` bigint(21) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
|
||||
CREATE TABLE t2 AS SELECT CONVERT(REPEAT('A', 255) USING UCS2) DIV 1 AS a;
|
||||
Warnings:
|
||||
@@ -24,7 +24,7 @@ SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` bigint(21) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
#After the patch, no error is reported.
|
||||
connection slave;
|
||||
connection master;
|
||||
|
@@ -29,38 +29,38 @@ Table t1
|
||||
Create Table CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t2;
|
||||
Table t2
|
||||
Create Table CREATE TABLE `t2` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t3;
|
||||
Table t3
|
||||
Create Table CREATE TABLE `t3` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
|
||||
connection slave;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table t1
|
||||
Create Table CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t2;
|
||||
Table t2
|
||||
Create Table CREATE TABLE `t2` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t3;
|
||||
Table t3
|
||||
Create Table CREATE TABLE `t3` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb3
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
|
||||
connection master;
|
||||
CREATE TABLE t5 (b INT, c INT) SELECT * FROM t3;
|
||||
CREATE TEMPORARY TABLE tt3 (a INT, b INT);
|
||||
@@ -72,7 +72,7 @@ Create Table CREATE TABLE `t5` (
|
||||
`c` int(11) DEFAULT NULL,
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SELECT * FROM t5 ORDER BY a,b,c;
|
||||
c a b
|
||||
SHOW CREATE TABLE t6;
|
||||
@@ -81,7 +81,7 @@ Create Table CREATE TABLE `t6` (
|
||||
`c` int(11) DEFAULT NULL,
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SELECT * FROM t6 ORDER BY a,b,c;
|
||||
c a b
|
||||
NULL 1 2
|
||||
@@ -97,7 +97,7 @@ Create Table CREATE TABLE `t5` (
|
||||
`c` int(11) DEFAULT NULL,
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SELECT * FROM t5 ORDER BY a,b,c;
|
||||
c a b
|
||||
SHOW CREATE TABLE t6;
|
||||
@@ -106,7 +106,7 @@ Create Table CREATE TABLE `t6` (
|
||||
`c` int(11) DEFAULT NULL,
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SELECT * FROM t6 ORDER BY a,b,c;
|
||||
c a b
|
||||
NULL 1 2
|
||||
@@ -188,13 +188,13 @@ Table t8
|
||||
Create Table CREATE TABLE `t8` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MRG_MyISAM DEFAULT CHARSET=utf8mb3
|
||||
) ENGINE=MRG_MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
|
||||
SHOW CREATE TABLE t9;
|
||||
Table t9
|
||||
Create Table CREATE TABLE `t9` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
@@ -210,13 +210,13 @@ Table t8
|
||||
Create Table CREATE TABLE `t8` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MRG_MyISAM DEFAULT CHARSET=utf8mb3
|
||||
) ENGINE=MRG_MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
|
||||
SHOW CREATE TABLE t9;
|
||||
Table t9
|
||||
Create Table CREATE TABLE `t9` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
connection slave;
|
||||
|
@@ -276,7 +276,7 @@ master-bin.000001 # Table_map # # table_id: # (test.tt_1)
|
||||
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION `fc`() RETURNS varchar(64) CHARSET latin1
|
||||
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION `fc`() RETURNS varchar(64) CHARSET latin1 COLLATE latin1_swedish_ci
|
||||
RETURN "fc"
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Annotate_rows # # INSERT INTO tt_1(ddl_case) VALUES (21)
|
||||
|
@@ -61,7 +61,7 @@ t1 CREATE TABLE `t1` (
|
||||
`id` int(11) NOT NULL,
|
||||
`data` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SET SQL_LOG_BIN=1;
|
||||
connection slave;
|
||||
call mtr.add_suppression("Slave SQL.*Could not execute .*te_rows event on table test.t.; Duplicate entry.* error.* 1062");
|
||||
@@ -72,7 +72,7 @@ t1 CREATE TABLE `t1` (
|
||||
`id` int(11) NOT NULL,
|
||||
`data` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
INSERT INTO t1 VALUES(1, 1);
|
||||
INSERT INTO t1 VALUES(2, 1);
|
||||
@@ -96,7 +96,7 @@ t2 CREATE TABLE `t2` (
|
||||
`id` int(11) NOT NULL,
|
||||
`data` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SET SQL_LOG_BIN=1;
|
||||
connection slave;
|
||||
CREATE TABLE t2(id INT NOT NULL PRIMARY KEY, data INT) Engine=MyIsam;
|
||||
@@ -106,7 +106,7 @@ t2 CREATE TABLE `t2` (
|
||||
`id` int(11) NOT NULL,
|
||||
`data` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Slave_skipped_errros = 4
|
||||
connection master;
|
||||
INSERT INTO t2 VALUES(1, 1);
|
||||
|
@@ -74,7 +74,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
CREATE TABLE t2 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10)) ENGINE=MyISAM;
|
||||
SHOW CREATE TABLE t1;
|
||||
@@ -83,14 +83,14 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SET @@global.collation_server=latin1_swedish_ci;
|
||||
SET @@session.collation_server=latin1_swedish_ci;
|
||||
connection master;
|
||||
@@ -186,14 +186,14 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
@@ -201,21 +201,21 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE t3;
|
||||
Table Create Table
|
||||
t3 CREATE TABLE `t3` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SET @@global.default_storage_engine=InnoDB;
|
||||
SET @@session.default_storage_engine=InnoDB;
|
||||
connection master;
|
||||
|
@@ -21,7 +21,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -36,7 +36,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -46,7 +46,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
@@ -65,7 +65,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -80,7 +80,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -90,7 +90,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
@@ -109,7 +109,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -124,7 +124,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -134,7 +134,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
|
@@ -28,7 +28,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -43,7 +43,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -53,7 +53,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
@@ -72,7 +72,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -87,7 +87,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -97,7 +97,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
@@ -116,7 +116,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -131,7 +131,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -141,7 +141,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
|
@@ -28,7 +28,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -43,7 +43,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -53,7 +53,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
@@ -72,7 +72,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -87,7 +87,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -97,7 +97,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
@@ -116,7 +116,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -131,7 +131,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -141,7 +141,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
|
@@ -28,7 +28,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -43,7 +43,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -53,7 +53,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
@@ -72,7 +72,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -87,7 +87,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -97,7 +97,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
@@ -116,7 +116,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -131,7 +131,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -141,7 +141,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
|
@@ -28,7 +28,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -43,7 +43,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -53,7 +53,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
@@ -72,7 +72,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -87,7 +87,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -97,7 +97,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
@@ -116,7 +116,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -131,7 +131,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -141,7 +141,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
|
@@ -29,7 +29,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -44,7 +44,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -54,7 +54,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
@@ -73,7 +73,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -88,7 +88,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -98,7 +98,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
@@ -117,7 +117,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -132,7 +132,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -142,7 +142,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
|
@@ -34,7 +34,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -49,7 +49,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# innodb
|
||||
@@ -65,7 +65,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -80,7 +80,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# aria
|
||||
@@ -96,7 +96,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -111,7 +111,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# concurrent alter Myisam
|
||||
@@ -192,7 +192,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -207,7 +207,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# innodb
|
||||
@@ -223,7 +223,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -238,7 +238,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# aria
|
||||
@@ -254,7 +254,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -269,7 +269,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# concurrent alter Myisam
|
||||
|
@@ -34,7 +34,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -49,7 +49,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# innodb
|
||||
@@ -65,7 +65,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -80,7 +80,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# aria
|
||||
@@ -96,7 +96,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -111,7 +111,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# concurrent alter Myisam
|
||||
@@ -189,7 +189,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -204,7 +204,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# innodb
|
||||
@@ -220,7 +220,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -235,7 +235,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# aria
|
||||
@@ -251,7 +251,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -266,7 +266,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# concurrent alter Myisam
|
||||
|
@@ -24,7 +24,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -39,7 +39,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/save_master_gtid.inc
|
||||
connection slave_node;
|
||||
include/sync_with_master_gtid.inc
|
||||
@@ -49,7 +49,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
include/save_master_gtid.inc
|
||||
|
@@ -37,7 +37,7 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000001 # Gtid # # GTID #-#-#
|
||||
|
@@ -18,7 +18,7 @@ tab CREATE TABLE `tab` (
|
||||
`b` varchar(100) DEFAULT NULL,
|
||||
`c` varchar(100) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
@@ -43,7 +43,7 @@ tab CREATE TABLE `tab` (
|
||||
`b` varchar(100) DEFAULT NULL,
|
||||
`c` varchar(100) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000001 # Gtid # # GTID #-#-#
|
||||
|
@@ -26,7 +26,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -41,7 +41,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# innodb
|
||||
@@ -57,7 +57,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -72,7 +72,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# aria
|
||||
@@ -88,7 +88,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -103,7 +103,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# concurrent alter Myisam
|
||||
|
@@ -21,7 +21,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SELECT @@gtid_binlog_state;
|
||||
@@gtid_binlog_state
|
||||
0-1-8
|
||||
@@ -40,7 +40,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
DROP TABLE t1;
|
||||
# reset the binlog
|
||||
RESET MASTER;
|
||||
@@ -76,7 +76,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -91,7 +91,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# innodb
|
||||
@@ -107,7 +107,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -122,7 +122,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# aria
|
||||
@@ -138,7 +138,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -153,7 +153,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# concurrent alter Myisam
|
||||
@@ -231,7 +231,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -246,7 +246,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# innodb
|
||||
@@ -262,7 +262,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -277,7 +277,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# aria
|
||||
@@ -293,7 +293,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
# Failed Alter
|
||||
insert into t1 values(1,1, NULL);
|
||||
alter table t1 change a a int unique;
|
||||
@@ -308,7 +308,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
|
||||
) ENGINE=Aria DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
||||
connection master_node;
|
||||
drop table t1;
|
||||
# concurrent alter Myisam
|
||||
|
@@ -33,7 +33,7 @@ t3 CREATE TABLE `t3` (
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`d` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
@@ -73,7 +73,7 @@ t3 CREATE TABLE `t3` (
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`d` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
SET GLOBAL debug_dbug= @old_debug_master;
|
||||
drop table t3;
|
||||
|
@@ -227,7 +227,7 @@ master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO tt_1(ddl_case) VALUES (22)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Gtid # # GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION `fc`() RETURNS varchar(64) CHARSET latin1
|
||||
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION `fc`() RETURNS varchar(64) CHARSET latin1 COLLATE latin1_swedish_ci
|
||||
RETURN "fc"
|
||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO tt_1(ddl_case) VALUES (21)
|
||||
|
@@ -54,7 +54,7 @@ SHOW CREATE TABLE mysqltest1.t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` bigint(20) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
INSERT INTO mysqltest1.t1 SET f1= 1;
|
||||
DROP TEMPORARY TABLE mysqltest1.tmp;
|
||||
@@ -72,7 +72,7 @@ SHOW CREATE TABLE mysqltest1.tmp2;
|
||||
Table Create Table
|
||||
tmp2 CREATE TEMPORARY TABLE `tmp2` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
######### Must return no rows here #########
|
||||
SELECT COUNT(*) FROM mysqltest1.t1;
|
||||
COUNT(*)
|
||||
|
@@ -12,20 +12,20 @@ show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL
|
||||
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ull`=12350
|
||||
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci `ull`=12350
|
||||
connection slave;
|
||||
connection slave;
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /* `ull`=12350 */
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci /* `ull`=12350 */
|
||||
set sql_mode=ignore_bad_table_options;
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 `ull`=12350
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci `ull`=12350
|
||||
connection master;
|
||||
drop table t1;
|
||||
set default_storage_engine=default;
|
||||
|
@@ -13,14 +13,14 @@ mysql050614_temporal0 CREATE TABLE `mysql050614_temporal0` (
|
||||
`a` time DEFAULT NULL,
|
||||
`b` datetime DEFAULT NULL,
|
||||
`c` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE mysql050614_temporal1;
|
||||
Table Create Table
|
||||
mysql050614_temporal1 CREATE TABLE `mysql050614_temporal1` (
|
||||
`a` time(1) DEFAULT NULL,
|
||||
`b` datetime(1) DEFAULT NULL,
|
||||
`c` timestamp(1) NOT NULL DEFAULT current_timestamp(1) ON UPDATE current_timestamp(1)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
SELECT @@mysql56_temporal_format;
|
||||
@@mysql56_temporal_format
|
||||
|
@@ -16,14 +16,14 @@ mysql050614_temporal0 CREATE TABLE `mysql050614_temporal0` (
|
||||
`a` time DEFAULT NULL,
|
||||
`b` datetime DEFAULT NULL,
|
||||
`c` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SHOW CREATE TABLE mysql050614_temporal1;
|
||||
Table Create Table
|
||||
mysql050614_temporal1 CREATE TABLE `mysql050614_temporal1` (
|
||||
`a` time(1) DEFAULT NULL,
|
||||
`b` datetime(1) DEFAULT NULL,
|
||||
`c` timestamp(1) NOT NULL DEFAULT current_timestamp(1) ON UPDATE current_timestamp(1)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
SELECT @@mysql56_temporal_format;
|
||||
@@mysql56_temporal_format
|
||||
|
@@ -9,14 +9,14 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`f2` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection slave;
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`f2` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
connection master;
|
||||
drop table t1;
|
||||
flush binary logs;
|
||||
|
64
mysql-test/suite/rpl/t/rpl_parallel_29322.test
Normal file
64
mysql-test/suite/rpl/t/rpl_parallel_29322.test
Normal file
@@ -0,0 +1,64 @@
|
||||
--echo #
|
||||
--echo # MDEV-29322 ASAN use-after-free options_written_to_bin_log
|
||||
--echo #
|
||||
|
||||
# The tests verify that at query execution slave parallel workers successfully
|
||||
# find a correct options_written_to_bin_log value associated with the query.
|
||||
# There are three test branches, A and B take care of different server version
|
||||
# binlogs. The homogeneous binlog case of C. branch is also for how-to-reproduce
|
||||
# the bug, may need few --repeat :s though.
|
||||
|
||||
--source include/have_binlog_format_mixed.inc
|
||||
--source include/master-slave.inc
|
||||
|
||||
--echo # A. set the master and slave explicit_defaults_for_timestamp values crisscross to (1,0)
|
||||
--let $same_version_binlogs=0
|
||||
|
||||
--connection master
|
||||
# Configure master and slave with different values of the following variable:
|
||||
set @sav.explicit_defaults_for_timestamp = @@session.explicit_defaults_for_timestamp;
|
||||
set @@session.explicit_defaults_for_timestamp = 1;
|
||||
--connection slave
|
||||
# slave must produce the master version of the table definition and its data
|
||||
set @sav.explicit_defaults_for_timestamp = @@global.explicit_defaults_for_timestamp;
|
||||
set global explicit_defaults_for_timestamp = 0;
|
||||
# the global var gets changed in the included file
|
||||
set @sav.slave_parallel_workers = @@global.slave_parallel_workers;
|
||||
--source include/stop_slave.inc
|
||||
set @@global.slave_parallel_workers = 1;
|
||||
--source include/start_slave.inc
|
||||
|
||||
--source suite/rpl/include/rpl_parallel_29322.inc
|
||||
|
||||
--echo # B. alternate the master and slave vars' values to (0,1)
|
||||
|
||||
--connection master
|
||||
# Configure master and slave with different values of the following variable:
|
||||
set @@session.explicit_defaults_for_timestamp = 0;
|
||||
--connection slave
|
||||
# slave must produce the master version of the table definition and its data
|
||||
set @@global.explicit_defaults_for_timestamp = 1;
|
||||
|
||||
--source suite/rpl/include/rpl_parallel_29322.inc
|
||||
|
||||
|
||||
--echo # C. the bug case on the same version binlogs also to demo on the patch's base
|
||||
--let $same_version_binlogs=1
|
||||
# with more workers the bug shows more likeky on the patch's base slave.
|
||||
--source include/stop_slave.inc
|
||||
set @@global.slave_parallel_workers = 4;
|
||||
--source include/start_slave.inc
|
||||
|
||||
--source suite/rpl/include/rpl_parallel_29322.inc
|
||||
|
||||
# cleanup
|
||||
--connection master
|
||||
set @@session.explicit_defaults_for_timestamp = @sav.explicit_defaults_for_timestamp;
|
||||
--connection slave
|
||||
set @@global.explicit_defaults_for_timestamp = @sav.explicit_defaults_for_timestamp;
|
||||
--source include/stop_slave.inc
|
||||
set @@global.slave_parallel_workers = @sav.slave_parallel_workers;
|
||||
--source include/start_slave.inc
|
||||
|
||||
|
||||
--source include/rpl_end.inc
|
Reference in New Issue
Block a user