1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00
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:
unknown
2005-09-14 18:15:40 -04:00
parent fc5ee2203b
commit dc4e76ca78
3 changed files with 29 additions and 1 deletions

View File

@@ -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);
}