summaryrefslogtreecommitdiff
path: root/sql/partition_info.h
diff options
context:
space:
mode:
authormattiasj@client-10-129-10-137.upp.off.mysql.com <>2008-01-09 13:15:50 +0100
committermattiasj@client-10-129-10-137.upp.off.mysql.com <>2008-01-09 13:15:50 +0100
commita6a9774849acafd54b4e625da444697ac76af2f0 (patch)
tree01efa133afaebe5223ea778383087a1375e03273 /sql/partition_info.h
parent6836db1cee363a47a0fd2423307e60fe7ecfedd4 (diff)
downloadmariadb-git-a6a9774849acafd54b4e625da444697ac76af2f0.tar.gz
Bug#31931 Partitions: unjustified 'mix of handlers' error message
Problem was that the mix of handlers was not consistent between CREATE and ALTER changed so that it works like: - All partitions must use the same engine AND it must be the same as the table. - if one does NOT specify an engine on the table level then one must either NOT specify any engine on any partition/subpartition OR for ALL partitions/subpartitions Note: that after a table have been created, the storage engine is specified for all parts of the table (table/partition/subpartition) and so when using alter, one does not need to specify it (unless one wants to change the storage engine, then one have to specify it on the table level)
Diffstat (limited to 'sql/partition_info.h')
-rw-r--r--sql/partition_info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/partition_info.h b/sql/partition_info.h
index b7d13e188f3..b38e572d3aa 100644
--- a/sql/partition_info.h
+++ b/sql/partition_info.h
@@ -269,7 +269,7 @@ public:
bool set_up_defaults_for_partitioning(handler *file, HA_CREATE_INFO *info,
uint start_no);
char *has_unique_names();
- static bool check_engine_mix(handlerton **engine_array, uint no_parts);
+ bool check_engine_mix(handlerton *engine_type, bool default_engine);
bool check_range_constants();
bool check_list_constants();
bool check_partition_info(THD *thd, handlerton **eng_type,