1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

BUG#18198: More fixes

This commit is contained in:
mikael/pappa@dator5.(none)
2006-07-31 11:38:09 -04:00
parent d870e35508
commit 23cb067aa2
7 changed files with 28 additions and 30 deletions

View File

@@ -1553,8 +1553,11 @@ bool fix_partition_func(THD *thd, TABLE *table,
goto end;
}
}
if ((check_part_func_fields(part_info->part_field_array)) ||
(part_info->is_sub_partitioned() &&
if (((part_info->part_type != HASH_PARTITION ||
part_info->list_of_part_fields == FALSE) &&
check_part_func_fields(part_info->part_field_array)) ||
(part_info->list_of_part_fields == FALSE &&
part_info->is_sub_partitioned() &&
check_part_func_fields(part_info->subpart_field_array)))
{
my_error(ER_PARTITION_FUNCTION_IS_NOT_ALLOWED, MYF(0));