mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into mockturtle.local:/home/dlenev/src/mysql-5.1-bg20670 mysql-test/r/trigger.result: Auto merged mysql-test/t/trigger.test: Auto merged sql/mysql_priv.h: Auto merged sql/opt_range.cc: Auto merged sql/opt_range.h: Auto merged sql/sql_partition.cc: Auto merged sql/sql_update.cc: Auto merged
This commit is contained in:
@@ -2037,18 +2037,17 @@ close_file:
|
||||
SYNOPSIS
|
||||
partition_key_modified
|
||||
table TABLE object for which partition fields are set-up
|
||||
fields A list of the to be modifed
|
||||
fields Bitmap representing fields to be modified
|
||||
|
||||
RETURN VALUES
|
||||
TRUE Need special handling of UPDATE
|
||||
FALSE Normal UPDATE handling is ok
|
||||
*/
|
||||
|
||||
bool partition_key_modified(TABLE *table, List<Item> &fields)
|
||||
bool partition_key_modified(TABLE *table, const MY_BITMAP *fields)
|
||||
{
|
||||
List_iterator_fast<Item> f(fields);
|
||||
Field **fld;
|
||||
partition_info *part_info= table->part_info;
|
||||
Item_field *item_field;
|
||||
DBUG_ENTER("partition_key_modified");
|
||||
|
||||
if (!part_info)
|
||||
@@ -2056,9 +2055,8 @@ bool partition_key_modified(TABLE *table, List<Item> &fields)
|
||||
if (table->s->db_type->partition_flags &&
|
||||
(table->s->db_type->partition_flags() & HA_CAN_UPDATE_PARTITION_KEY))
|
||||
DBUG_RETURN(FALSE);
|
||||
f.rewind();
|
||||
while ((item_field=(Item_field*) f++))
|
||||
if (item_field->field->flags & FIELD_IN_PART_FUNC_FLAG)
|
||||
for (fld= part_info->full_part_field_array; *fld; fld++)
|
||||
if (bitmap_is_set(fields, (*fld)->field_index))
|
||||
DBUG_RETURN(TRUE);
|
||||
DBUG_RETURN(FALSE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user