mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	Merge mysql-5.1 to mysql-5.5.
This commit is contained in:
		| @@ -5700,6 +5700,7 @@ ha_innobase::index_read( | |||||||
| 			(byte*) key_ptr, | 			(byte*) key_ptr, | ||||||
| 			(ulint) key_len, | 			(ulint) key_len, | ||||||
| 			prebuilt->trx); | 			prebuilt->trx); | ||||||
|  | 		DBUG_ASSERT(prebuilt->search_tuple->n_fields > 0); | ||||||
| 	} else { | 	} else { | ||||||
| 		/* We position the cursor to the last or the first entry | 		/* We position the cursor to the last or the first entry | ||||||
| 		in the index */ | 		in the index */ | ||||||
| @@ -7527,6 +7528,7 @@ ha_innobase::records_in_range( | |||||||
| 	mem_heap_t*	heap; | 	mem_heap_t*	heap; | ||||||
|  |  | ||||||
| 	DBUG_ENTER("records_in_range"); | 	DBUG_ENTER("records_in_range"); | ||||||
|  | 	DBUG_ASSERT(min_key || max_key); | ||||||
|  |  | ||||||
| 	ut_a(prebuilt->trx == thd_to_trx(ha_thd())); | 	ut_a(prebuilt->trx == thd_to_trx(ha_thd())); | ||||||
|  |  | ||||||
| @@ -7576,6 +7578,9 @@ ha_innobase::records_in_range( | |||||||
| 					 (const uchar*) 0), | 					 (const uchar*) 0), | ||||||
| 				(ulint) (min_key ? min_key->length : 0), | 				(ulint) (min_key ? min_key->length : 0), | ||||||
| 				prebuilt->trx); | 				prebuilt->trx); | ||||||
|  | 	DBUG_ASSERT(min_key | ||||||
|  | 		    ? range_start->n_fields > 0 | ||||||
|  | 		    : range_start->n_fields == 0); | ||||||
|  |  | ||||||
| 	row_sel_convert_mysql_key_to_innobase( | 	row_sel_convert_mysql_key_to_innobase( | ||||||
| 				range_end, (byte*) key_val_buff2, | 				range_end, (byte*) key_val_buff2, | ||||||
| @@ -7584,6 +7589,9 @@ ha_innobase::records_in_range( | |||||||
| 					 (const uchar*) 0), | 					 (const uchar*) 0), | ||||||
| 				(ulint) (max_key ? max_key->length : 0), | 				(ulint) (max_key ? max_key->length : 0), | ||||||
| 				prebuilt->trx); | 				prebuilt->trx); | ||||||
|  | 	DBUG_ASSERT(max_key | ||||||
|  | 		    ? range_end->n_fields > 0 | ||||||
|  | 		    : range_end->n_fields == 0); | ||||||
|  |  | ||||||
| 	mode1 = convert_search_mode_to_innobase(min_key ? min_key->flag : | 	mode1 = convert_search_mode_to_innobase(min_key ? min_key->flag : | ||||||
| 						HA_READ_KEY_EXACT); | 						HA_READ_KEY_EXACT); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user