Merge mysql-5.1 to mysql-5.5.
This commit is contained in:
commit
82642cd369
@ -5700,6 +5700,7 @@ ha_innobase::index_read(
|
||||
(byte*) key_ptr,
|
||||
(ulint) key_len,
|
||||
prebuilt->trx);
|
||||
DBUG_ASSERT(prebuilt->search_tuple->n_fields > 0);
|
||||
} else {
|
||||
/* We position the cursor to the last or the first entry
|
||||
in the index */
|
||||
@ -7527,6 +7528,7 @@ ha_innobase::records_in_range(
|
||||
mem_heap_t* heap;
|
||||
|
||||
DBUG_ENTER("records_in_range");
|
||||
DBUG_ASSERT(min_key || max_key);
|
||||
|
||||
ut_a(prebuilt->trx == thd_to_trx(ha_thd()));
|
||||
|
||||
@ -7576,6 +7578,9 @@ ha_innobase::records_in_range(
|
||||
(const uchar*) 0),
|
||||
(ulint) (min_key ? min_key->length : 0),
|
||||
prebuilt->trx);
|
||||
DBUG_ASSERT(min_key
|
||||
? range_start->n_fields > 0
|
||||
: range_start->n_fields == 0);
|
||||
|
||||
row_sel_convert_mysql_key_to_innobase(
|
||||
range_end, (byte*) key_val_buff2,
|
||||
@ -7584,6 +7589,9 @@ ha_innobase::records_in_range(
|
||||
(const uchar*) 0),
|
||||
(ulint) (max_key ? max_key->length : 0),
|
||||
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 :
|
||||
HA_READ_KEY_EXACT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user