summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
authormikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se <>2006-04-21 08:37:09 -0400
committermikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se <>2006-04-21 08:37:09 -0400
commitfe46ee911180b796e71faccb8f9470d374a665a6 (patch)
treef902e45e4078ccac436f3d2d5d4e8bbd7a32f696 /sql/partition_info.cc
parenta3f152cc6e31c5147afe6d9175e954762064ec40 (diff)
downloadmariadb-git-fe46ee911180b796e71faccb8f9470d374a665a6.tar.gz
BUG#18962: Crash of ALTER TABLE .. DROP PARTITION ...
Review fixes
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index bb1e9eeb905..dfc5dd2989b 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -88,7 +88,7 @@ partition_info *partition_info::get_clone()
The external routine needing this code is check_partition_info
*/
-#define MAX_PART_NAME_SIZE 16
+#define MAX_PART_NAME_SIZE 8
char *partition_info::create_default_partition_names(uint part_no, uint no_parts,
uint start_no)
@@ -125,7 +125,8 @@ char *partition_info::create_default_partition_names(uint part_no, uint no_parts
0 Memory allocation error
*/
-char *create_subpartition_name(uint subpart_no, const char *part_name)
+char *partition_info::create_subpartition_name(uint subpart_no,
+ const char *part_name)
{
uint size_alloc= strlen(part_name) + MAX_PART_NAME_SIZE;
char *ptr= sql_calloc(size_alloc);