mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	A wrong order of statements in QUICK_GROUP_MIN_MAX_SELECT::reset caused a crash when a query with DISTINCT was executed by a loose scan for an InnoDB table that had been emptied. mysql-test/r/innodb_mysql.result: Added a test case for bug #26159. mysql-test/t/innodb_mysql.test: Added a test case for bug #26159. sql/opt_range.cc: Fixed bug #26159. A wrong order of statements in QUICK_GROUP_MIN_MAX_SELECT::reset caused a crash when a query with DISTINCT was executed by a loose scan for an InnoDB table that had been emptied. For an empty table quick_prefix_select->reset() was not called at all and thus some important initialization steps were missing.
		
			
				
	
	
		
			15 lines
		
	
	
		
			366 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			366 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # t/innodb_mysql.test
 | |
| #
 | |
| # Last update:
 | |
| # 2006-07-26 ML test refactored (MySQL 5.1)
 | |
| #               main testing code t/innodb_mysql.test -> include/mix1.inc              
 | |
| #
 | |
| 
 | |
| -- source include/have_innodb.inc
 | |
| let $engine_type= InnoDB;
 | |
| let $other_engine_type= MEMORY;
 | |
| # InnoDB does support FOREIGN KEYFOREIGN KEYs
 | |
| let $test_foreign_keys= 1;
 | |
| 
 | |
| --source include/mix1.inc
 |