mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 02:46:29 +01:00 
			
		
		
		
	 9854fb6fa7
			
		
	
	
	9854fb6fa7
	
	
	
		
			
			This patch adds for "--ps-protocol" second execution of queries "SELECT". Also in this patch it is added ability to disable/enable (--disable_ps2_protocol/--enable_ps2_protocol) second execution for "--ps-prototocol" in testcases.
		
			
				
	
	
		
			40 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| --source include/have_sequence.inc
 | |
| --source include/have_binlog_format_mixed_or_row.inc
 | |
| --source include/binlog_start_pos.inc
 | |
| 
 | |
| #
 | |
| # Testing binary logging of sequences
 | |
| #
 | |
| 
 | |
| --disable_query_log
 | |
| reset master; # get rid of previous tests binlog
 | |
| --enable_query_log
 | |
| 
 | |
| create or replace sequence s1 cache 3;
 | |
| --disable_ps2_protocol
 | |
| select next value for s1, minimum_value from s1 where maximum_value> 1;
 | |
| select next value for s1, minimum_value from s1 where maximum_value> 2;
 | |
| select next value for s1, minimum_value from s1 where maximum_value> 3;
 | |
| select next value for s1, minimum_value from s1 where maximum_value> 4;
 | |
| --enable_ps2_protocol
 | |
| 
 | |
| #
 | |
| # Alter sequence
 | |
| #
 | |
| alter sequence s1 maxvalue 1000;
 | |
| 
 | |
| # MDEV-24617 OPTIMIZE on a sequence causes unexpected
 | |
| # ER_BINLOG_UNSAFE_STATEMENT The test below verifies no unsafe
 | |
| # warnings anymore for any relavant commands that like OPTIMIZE can
 | |
| # not produce ROW format events therefore the unsafe warning either.
 | |
| optimize table s1;
 | |
| analyze table s1;
 | |
| repair table s1;
 | |
| check table s1;
 | |
| rename table s1 to tmp_s;
 | |
| rename table tmp_s to s1;
 | |
| 
 | |
| drop sequence s1;
 | |
| 
 | |
| --let $binlog_file = LAST
 | |
| source include/show_binlog_events.inc;
 |