Commit fbac6363 authored by Mikael Ronstrom's avatar Mikael Ronstrom

Upped size limit on varchar/char from 512 to 2048

parent cecef1c5
......@@ -19,7 +19,7 @@
#include "partition_element.h"
#define MAX_STR_SIZE_PF 512
#define MAX_STR_SIZE_PF 2048
class partition_info;
......
......@@ -2095,7 +2095,7 @@ static int add_column_list_values(File fptr, partition_info *part_info,
err+= add_string(fptr, "NULL");
else
{
char buffer[MAX_STR_SIZE_PF];
char buffer[3 * MAX_STR_SIZE_PF + 10];
String str(buffer, sizeof(buffer), &my_charset_bin);
Item *item_expr= col_val->item_expression;
if (item_expr->null_value)
......
......@@ -4846,7 +4846,7 @@ get_partition_column_description(partition_info *part_info,
tmp_str.append("NULL");
else
{
char buffer[MAX_STR_SIZE_PF];
char buffer[3 * MAX_STR_SIZE_PF + 10];
String str(buffer, sizeof(buffer), &my_charset_bin);
Item *item= col_val->item_expression;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment