mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	This test case uses mysqlbinlog to dump the content of master-bin.000001, but the content of master-bin.000001 is not that this test needs. MTR runs a lot of test cases on one server, so when this test starts, the current binlog file might not be master-bin.000001, or there are other events are written by tests before. 'RESET MASTER' command must be called at the begin, it ensures that binlog of this test is wrote to master-bin.000001 correctly. Three other tests have the same problem, They were fixed together. mysqlbinlog-cp932 binlog_incident binlog_tmp_table
		
			
				
	
	
		
			27 lines
		
	
	
		
			975 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			975 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # disabled in embedded until tools running is fixed with embedded
 | |
| --source include/not_embedded.inc
 | |
| 
 | |
| -- source include/have_binlog_format_mixed_or_statement.inc
 | |
| -- source include/have_cp932.inc
 | |
| -- source include/have_log_bin.inc
 | |
| 
 | |
| RESET MASTER;
 | |
| 
 | |
| # Bug#16217 (mysql client did not know how not switch its internal charset)
 | |
| create table t3 (f text character set utf8);
 | |
| create table t4 (f text character set cp932); 
 | |
| --exec $MYSQL --default-character-set=utf8 test -e "insert into t3 values(_utf8'ソ')"
 | |
| --exec $MYSQL --default-character-set=cp932 test -e "insert into t4 values(_cp932'ƒ\');"
 | |
| flush logs;
 | |
| rename table t3 to t03, t4 to t04;
 | |
| let $MYSQLD_DATADIR= `select @@datadir`;
 | |
| --exec $MYSQL_BINLOG --short-form $MYSQLD_DATADIR/master-bin.000001 | $MYSQL --default-character-set=utf8
 | |
| # original and recovered data must be equal
 | |
| select HEX(f) from t03;
 | |
| select HEX(f) from t3;
 | |
| select HEX(f) from t04;
 | |
| select HEX(f) from t4;
 | |
| 
 | |
| drop table t3, t4, t03, t04;
 | |
| --echo End of 5.0 tests
 |