mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-27 05:56:07 +03:00 
			
		
		
		
	Contains also
MDEV-10547: Test multi_update_innodb fails with InnoDB 5.7
	The failure happened because 5.7 has changed the signature of
	the bool handler::primary_key_is_clustered() const
	virtual function ("const" was added). InnoDB was using the old
	signature which caused the function not to be used.
MDEV-10550: Parallel replication lock waits/deadlock handling does not work with InnoDB 5.7
	Fixed mutexing problem on lock_trx_handle_wait. Note that
	rpl_parallel and rpl_optimistic_parallel tests still
	fail.
MDEV-10156 : Group commit tests fail on 10.2 InnoDB (branch bb-10.2-jan)
  Reason: incorrect merge
MDEV-10550: Parallel replication can't sync with master in InnoDB 5.7 (branch bb-10.2-jan)
  Reason: incorrect merge
		
	
		
			
				
	
	
		
			165 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			165 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| DROP DATABASE IF EXISTS test1;
 | |
| DROP DATABASE IF EXISTS test2;
 | |
| CREATE DATABASE test1;
 | |
| CREATE DATABASE test2;
 | |
| CREATE TABLE test1.t1  (f1 VARCHAR(20)) ENGINE = <engine_to_be_used>;
 | |
| CREATE TABLE test1.t2  (f1 VARCHAR(20)) ENGINE = <engine_to_be_used>;
 | |
| CREATE TABLE test2.t1 (f1 VARCHAR(20)) ENGINE = <engine_to_be_used>;
 | |
| SELECT *,
 | |
| LEFT( table_comment,
 | |
| IF(INSTR(table_comment,'InnoDB free') = 0,
 | |
| LENGTH(table_comment),
 | |
| INSTR(table_comment,'InnoDB free') - 1))
 | |
| AS "user_comment",
 | |
| '-----------------------------------------------------' AS "Separator"
 | |
| FROM information_schema.tables
 | |
| WHERE table_schema LIKE 'test%' AND table_type = 'BASE TABLE'
 | |
| ORDER BY table_schema,table_name;
 | |
| TABLE_CATALOG	def
 | |
| TABLE_SCHEMA	test1
 | |
| TABLE_NAME	t1
 | |
| TABLE_TYPE	BASE TABLE
 | |
| ENGINE	InnoDB
 | |
| VERSION	10
 | |
| ROW_FORMAT	DYNAMIC_OR_PAGE
 | |
| TABLE_ROWS	#TBLR#
 | |
| AVG_ROW_LENGTH	#ARL#
 | |
| DATA_LENGTH	#DL#
 | |
| MAX_DATA_LENGTH	#MDL#
 | |
| INDEX_LENGTH	#IL#
 | |
| DATA_FREE	#DF#
 | |
| AUTO_INCREMENT	NULL
 | |
| CREATE_TIME	#CRT#
 | |
| UPDATE_TIME	#UT#
 | |
| CHECK_TIME	#CT#
 | |
| TABLE_COLLATION	latin1_swedish_ci
 | |
| CHECKSUM	NULL
 | |
| CREATE_OPTIONS	#CO#
 | |
| TABLE_COMMENT	#TC#
 | |
| user_comment	
 | |
| Separator	-----------------------------------------------------
 | |
| TABLE_CATALOG	def
 | |
| TABLE_SCHEMA	test1
 | |
| TABLE_NAME	t2
 | |
| TABLE_TYPE	BASE TABLE
 | |
| ENGINE	InnoDB
 | |
| VERSION	10
 | |
| ROW_FORMAT	DYNAMIC_OR_PAGE
 | |
| TABLE_ROWS	#TBLR#
 | |
| AVG_ROW_LENGTH	#ARL#
 | |
| DATA_LENGTH	#DL#
 | |
| MAX_DATA_LENGTH	#MDL#
 | |
| INDEX_LENGTH	#IL#
 | |
| DATA_FREE	#DF#
 | |
| AUTO_INCREMENT	NULL
 | |
| CREATE_TIME	#CRT#
 | |
| UPDATE_TIME	#UT#
 | |
| CHECK_TIME	#CT#
 | |
| TABLE_COLLATION	latin1_swedish_ci
 | |
| CHECKSUM	NULL
 | |
| CREATE_OPTIONS	#CO#
 | |
| TABLE_COMMENT	#TC#
 | |
| user_comment	
 | |
| Separator	-----------------------------------------------------
 | |
| TABLE_CATALOG	def
 | |
| TABLE_SCHEMA	test2
 | |
| TABLE_NAME	t1
 | |
| TABLE_TYPE	BASE TABLE
 | |
| ENGINE	InnoDB
 | |
| VERSION	10
 | |
| ROW_FORMAT	DYNAMIC_OR_PAGE
 | |
| TABLE_ROWS	#TBLR#
 | |
| AVG_ROW_LENGTH	#ARL#
 | |
| DATA_LENGTH	#DL#
 | |
| MAX_DATA_LENGTH	#MDL#
 | |
| INDEX_LENGTH	#IL#
 | |
| DATA_FREE	#DF#
 | |
| AUTO_INCREMENT	NULL
 | |
| CREATE_TIME	#CRT#
 | |
| UPDATE_TIME	#UT#
 | |
| CHECK_TIME	#CT#
 | |
| TABLE_COLLATION	latin1_swedish_ci
 | |
| CHECKSUM	NULL
 | |
| CREATE_OPTIONS	#CO#
 | |
| TABLE_COMMENT	#TC#
 | |
| user_comment	
 | |
| Separator	-----------------------------------------------------
 | |
| SHOW TABLES FROM test1;
 | |
| Tables_in_test1
 | |
| t1
 | |
| t2
 | |
| SHOW TABLES FROM test2;
 | |
| Tables_in_test2
 | |
| t1
 | |
| DROP   USER testuser1@localhost;
 | |
| CREATE USER testuser1@localhost;
 | |
| GRANT SELECT ON test1.* TO testuser1@localhost;
 | |
| connect  testuser1,localhost,testuser1,,test1;
 | |
| SELECT *,
 | |
| LEFT( table_comment,
 | |
| IF(INSTR(table_comment,'InnoDB free') = 0,
 | |
| LENGTH(table_comment),
 | |
| INSTR(table_comment,'InnoDB free') - 1))
 | |
| AS "user_comment",
 | |
| '-----------------------------------------------------' AS "Separator"
 | |
| FROM information_schema.tables
 | |
| WHERE table_schema LIKE 'test%' AND table_type = 'BASE TABLE'
 | |
| ORDER BY table_schema,table_name;
 | |
| TABLE_CATALOG	def
 | |
| TABLE_SCHEMA	test1
 | |
| TABLE_NAME	t1
 | |
| TABLE_TYPE	BASE TABLE
 | |
| ENGINE	InnoDB
 | |
| VERSION	10
 | |
| ROW_FORMAT	DYNAMIC_OR_PAGE
 | |
| TABLE_ROWS	#TBLR#
 | |
| AVG_ROW_LENGTH	#ARL#
 | |
| DATA_LENGTH	#DL#
 | |
| MAX_DATA_LENGTH	#MDL#
 | |
| INDEX_LENGTH	#IL#
 | |
| DATA_FREE	#DF#
 | |
| AUTO_INCREMENT	NULL
 | |
| CREATE_TIME	#CRT#
 | |
| UPDATE_TIME	#UT#
 | |
| CHECK_TIME	#CT#
 | |
| TABLE_COLLATION	latin1_swedish_ci
 | |
| CHECKSUM	NULL
 | |
| CREATE_OPTIONS	#CO#
 | |
| TABLE_COMMENT	#TC#
 | |
| user_comment	
 | |
| Separator	-----------------------------------------------------
 | |
| TABLE_CATALOG	def
 | |
| TABLE_SCHEMA	test1
 | |
| TABLE_NAME	t2
 | |
| TABLE_TYPE	BASE TABLE
 | |
| ENGINE	InnoDB
 | |
| VERSION	10
 | |
| ROW_FORMAT	DYNAMIC_OR_PAGE
 | |
| TABLE_ROWS	#TBLR#
 | |
| AVG_ROW_LENGTH	#ARL#
 | |
| DATA_LENGTH	#DL#
 | |
| MAX_DATA_LENGTH	#MDL#
 | |
| INDEX_LENGTH	#IL#
 | |
| DATA_FREE	#DF#
 | |
| AUTO_INCREMENT	NULL
 | |
| CREATE_TIME	#CRT#
 | |
| UPDATE_TIME	#UT#
 | |
| CHECK_TIME	#CT#
 | |
| TABLE_COLLATION	latin1_swedish_ci
 | |
| CHECKSUM	NULL
 | |
| CREATE_OPTIONS	#CO#
 | |
| TABLE_COMMENT	#TC#
 | |
| user_comment	
 | |
| Separator	-----------------------------------------------------
 | |
| SHOW TABLES FROM test1;
 | |
| Tables_in_test1
 | |
| t1
 | |
| t2
 | |
| SHOW TABLES FROM test2;
 | |
| ERROR 42000: Access denied for user 'testuser1'@'localhost' to database 'test2'
 | |
| connection default;
 | |
| disconnect testuser1;
 | |
| DROP USER testuser1@localhost;
 | |
| DROP DATABASE test1;
 | |
| DROP DATABASE test2;
 |