mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Bug #13154:
Used AND when modulo should have been used to calculate partition id for PARTITION BY KEY and SUBPARTITION BY KEY mysql-test/r/partition.result: New test for Bug #13154 mysql-test/t/partition.test: New test for Bug #13154
This commit is contained in:
@@ -2298,7 +2298,7 @@ static uint32 get_part_id_key(Field **field_array,
|
||||
uint no_parts)
|
||||
{
|
||||
DBUG_ENTER("get_part_id_key");
|
||||
DBUG_RETURN(calculate_key_value(field_array) & no_parts);
|
||||
DBUG_RETURN(calculate_key_value(field_array) % no_parts);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user