mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	1. Fixes within the testscripts   (affects rpl_ddl.test and rpl_ndb_ddl.test)
   - slave connection is only an observer (-> AUTOCOMMIT = 0)
     This removes the problem with the hanging test around DROP DATABASE (NDB). The hanging test around DROP DATABASE is a difference to InnoDB/MyISAm behaviour but fare
     away of a clear bug. IMHO this behaviour does not violate the SQL standard and should be therefore simply accepted.   
   - removal of wrong comments
   - CREATE/DROP TEMPORARY TABLE must not cause implicit commit of the current transaction.
     NDB behaves here correct and InnoDB/Falcon wrong.
   - Add a missing connection slave
   - Reenable the test rpl_ndb_ddl.
2. Disable rpl_ddl.test because of Bug#26418.
3. Reenable rpl_ndb_ddl.test
4. Improvements (affect rpl_ddl.test and rpl_ndb_ddl.test)
   - Better + extended comments which should prevent that somebody accidently destroys the logics of the test
   - Replace SELECT's printing comments by "--echo"  (decreases the number of auxiliary SQL commands)
   - Remove the need for include/rpl_stmt_seq2.inc   (was mostly redundant to rpl_stmt_seq.inc)
   - Remove extra/rpl_tests/rpl_ndb_ddl.test         (corrected extra/rpl_tests/rpl_ddl.test is sufficient)  
   - Shift assignment of values to $show_binlog, $manipulate (variables useful for debugging) into the toplevel scripts
   - The temporary tables get now their storage engine from the variable $temp_engine_type. (more deterministic testing conditions)
   - Add additional protocol line if the connection is switched (was partially missing)
   - Add two DML commands for comparison purposes
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
######################## rpl_ddl.test ########################
 | 
						|
#                                                            #
 | 
						|
# DDL statements (sometimes with implicit COMMIT) executed   #
 | 
						|
# by the master and it's propagation into the slave          #
 | 
						|
#                                                            #
 | 
						|
##############################################################
 | 
						|
 | 
						|
#
 | 
						|
# NOTE, PLEASE BE CAREFUL, WHEN MODIFYING THE TESTS !!
 | 
						|
#
 | 
						|
#      1. !All! objects to be dropped, renamed, altered ... must be created
 | 
						|
#         in AUTOCOMMIT= 1 mode before AUTOCOMMIT is set to 0 and the test
 | 
						|
#         sequences start.
 | 
						|
#
 | 
						|
#      2. Never use a test object, which was direct or indirect affected by a
 | 
						|
#         preceeding test sequence again.
 | 
						|
#         Except table d1.t1 where ONLY DML is allowed.
 | 
						|
#
 | 
						|
#         If one preceeding test sequence hits a (sometimes not good visible,
 | 
						|
#         because the sql error code of the statement might be 0) bug
 | 
						|
#         and these rules are ignored, a following test sequence might earn ugly
 | 
						|
#         effects like failing 'sync_slave_with_master', crashes of the slave or
 | 
						|
#         abort of the test case etc..
 | 
						|
#
 | 
						|
--source include/not_ndb_default.inc
 | 
						|
--source include/master-slave.inc
 | 
						|
--source include/have_innodb.inc
 | 
						|
let $engine_type= InnoDB;
 | 
						|
let $temp_engine_type= MEMORY;
 | 
						|
let $show_binlog = 0;
 | 
						|
let $manipulate = 0;
 | 
						|
-- source extra/rpl_tests/rpl_ddl.test
 |