mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix to compile without partitioning.
Remove few ifdef's
This commit is contained in:
@ -3609,6 +3609,44 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item *cond)
|
||||
/****************************************************************************
|
||||
* Partition pruning module
|
||||
****************************************************************************/
|
||||
|
||||
/*
|
||||
Store field key image to table record
|
||||
|
||||
SYNOPSIS
|
||||
store_key_image_to_rec()
|
||||
field Field which key image should be stored
|
||||
ptr Field value in key format
|
||||
len Length of the value, in bytes
|
||||
|
||||
DESCRIPTION
|
||||
Copy the field value from its key image to the table record. The source
|
||||
is the value in key image format, occupying len bytes in buffer pointed
|
||||
by ptr. The destination is table record, in "field value in table record"
|
||||
format.
|
||||
*/
|
||||
|
||||
void store_key_image_to_rec(Field *field, uchar *ptr, uint len)
|
||||
{
|
||||
/* Do the same as print_key() does */
|
||||
my_bitmap_map *old_map;
|
||||
|
||||
if (field->real_maybe_null())
|
||||
{
|
||||
if (*ptr)
|
||||
{
|
||||
field->set_null();
|
||||
return;
|
||||
}
|
||||
field->set_notnull();
|
||||
ptr++;
|
||||
}
|
||||
old_map= dbug_tmp_use_all_columns(field->table,
|
||||
field->table->write_set);
|
||||
field->set_key_image(ptr, len);
|
||||
dbug_tmp_restore_column_map(field->table->write_set, old_map);
|
||||
}
|
||||
|
||||
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
||||
|
||||
/*
|
||||
@ -3943,44 +3981,6 @@ end:
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Store field key image to table record
|
||||
|
||||
SYNOPSIS
|
||||
store_key_image_to_rec()
|
||||
field Field which key image should be stored
|
||||
ptr Field value in key format
|
||||
len Length of the value, in bytes
|
||||
|
||||
DESCRIPTION
|
||||
Copy the field value from its key image to the table record. The source
|
||||
is the value in key image format, occupying len bytes in buffer pointed
|
||||
by ptr. The destination is table record, in "field value in table record"
|
||||
format.
|
||||
*/
|
||||
|
||||
void store_key_image_to_rec(Field *field, uchar *ptr, uint len)
|
||||
{
|
||||
/* Do the same as print_key() does */
|
||||
my_bitmap_map *old_map;
|
||||
|
||||
if (field->real_maybe_null())
|
||||
{
|
||||
if (*ptr)
|
||||
{
|
||||
field->set_null();
|
||||
return;
|
||||
}
|
||||
field->set_notnull();
|
||||
ptr++;
|
||||
}
|
||||
old_map= dbug_tmp_use_all_columns(field->table,
|
||||
field->table->write_set);
|
||||
field->set_key_image(ptr, len);
|
||||
dbug_tmp_restore_column_map(field->table->write_set, old_map);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
For SEL_ARG* array, store sel_arg->min values into table record buffer
|
||||
|
||||
|
Reference in New Issue
Block a user