mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Adjust the MySQL 5.7 tests for MariaDB 10.2
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
include/master-slave.inc
|
||||
Warnings:
|
||||
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
|
||||
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
|
||||
[connection master]
|
||||
connection master;
|
||||
CREATE PROCEDURE populate_t1(load_even INT)
|
||||
BEGIN
|
||||
DECLARE i int DEFAULT 1;
|
||||
@@ -31,15 +29,11 @@ CREATE INDEX idx_id ON t1(id);
|
||||
CREATE INDEX idx_title ON t1(title);
|
||||
/* Select by index. */
|
||||
EXPLAIN SELECT * FROM t1 WHERE id = 10;
|
||||
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
|
||||
1 SIMPLE t1 NULL ref idx_id idx_id 5 const 1 100.00 NULL
|
||||
Warnings:
|
||||
Note 1003 /* select#1 */ select `test`.`t1`.`class` AS `class`,`test`.`t1`.`id` AS `id`,`test`.`t1`.`title` AS `title` from `test`.`t1` where (`test`.`t1`.`id` = 10)
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 ref idx_id idx_id 5 const 1
|
||||
EXPLAIN SELECT * FROM t1 WHERE title = 'a10';
|
||||
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
|
||||
1 SIMPLE t1 NULL ref idx_title idx_title 103 const 1 100.00 NULL
|
||||
Warnings:
|
||||
Note 1003 /* select#1 */ select `test`.`t1`.`class` AS `class`,`test`.`t1`.`id` AS `id`,`test`.`t1`.`title` AS `title` from `test`.`t1` where (`test`.`t1`.`title` = 'a10')
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 ref idx_title idx_title 103 const 1 Using index condition
|
||||
SELECT * FROM t1 WHERE id = 10;
|
||||
class id title
|
||||
10 10 a10
|
||||
@@ -148,6 +142,7 @@ class id title
|
||||
SELECT * FROM t_part WHERE title = 'a101';
|
||||
class id title
|
||||
include/sync_slave_sql_with_master.inc
|
||||
connection slave;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
@@ -165,11 +160,11 @@ t_part CREATE TABLE `t_part` (
|
||||
`title` varchar(30) DEFAULT NULL,
|
||||
KEY `idx` (`class`,`id`,`title`(10))
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
/*!50100 PARTITION BY RANGE (id)
|
||||
SUBPARTITION BY KEY (id)
|
||||
PARTITION BY RANGE (`id`)
|
||||
SUBPARTITION BY KEY (`id`)
|
||||
SUBPARTITIONS 4
|
||||
(PARTITION p0 VALUES LESS THAN (5000) ENGINE = InnoDB,
|
||||
PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */
|
||||
(PARTITION `p0` VALUES LESS THAN (5000) ENGINE = InnoDB,
|
||||
PARTITION `p1` VALUES LESS THAN MAXVALUE ENGINE = InnoDB)
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
97
|
||||
@@ -220,6 +215,7 @@ SELECT * FROM t_part WHERE id = 101;
|
||||
class id title
|
||||
SELECT * FROM t_part WHERE title = 'a101';
|
||||
class id title
|
||||
connection master;
|
||||
DROP PROCEDURE populate_t1;
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t_part;
|
||||
|
Reference in New Issue
Block a user