mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 12:15:32 +02:00
BUG#18962: Crash of ALTER TABLE .. DROP PARTITION ...
Review fixes sql/partition_info.cc: Review fixes sql/partition_info.h: Review fixes
This commit is contained in:
parent
e66e612931
commit
2cb17f9691
2 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue