mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 19:06:14 +01:00 
			
		
		
		
	 a72b2c3ffb
			
		
	
	
	a72b2c3ffb
	
	
	
		
			
			Timers require my_timer_init() call. It was made only in mysqld_main(). Call it also from init_embedded_server().
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			447 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			447 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| --source include/is_embedded.inc
 | |
| --source include/big_test.inc
 | |
| 
 | |
| --echo #
 | |
| --echo # MDEV-31121: ANALYZE statement produces 0 for all timings in embedded serve
 | |
| --echo #
 | |
| create table t1 (a int);
 | |
| insert into t1 values (0),(0);
 | |
| let $out=`
 | |
| analyze format=json select sleep(1+a) from t1
 | |
| `;
 | |
| 
 | |
| evalp set @js='$out';
 | |
| set @out=(select json_extract(@js,'$**.query_block.r_total_time_ms'));
 | |
| select cast(json_extract(@out,'$[0]') as DOUBLE) > 0;
 | |
| 
 | |
| drop table t1;
 | |
| 
 |