summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
authorMattias Jonsson <mattias.jonsson@oracle.com>2013-06-28 13:18:16 +0200
committerMattias Jonsson <mattias.jonsson@oracle.com>2013-06-28 13:18:16 +0200
commitb2159871e4401f25585ef95978405cf23adaf2c3 (patch)
tree3304066715e85b94b51ea9f75cf20563347bdbb4 /sql/partition_info.cc
parent1cfa4eb045bde7c960e21eeb554836df0d024ff5 (diff)
downloadmariadb-git-b2159871e4401f25585ef95978405cf23adaf2c3.tar.gz
Bug#16589511: MYSQL_UPGRADE FAILS TO WRITE OUT ENTIRE
ALTER TABLE ... ALGORITHM= ... STATEMENT The problem was an intermediate buffer of smaller size, which truncated the alter statement. Solved by providing the size of the buffer to be allocated through the function call, instead of using an one-size-fits-all stack buffer inside the function.
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index 056676503dd..7272978df1d 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -2459,7 +2459,7 @@ bool partition_info::has_same_partitioning(partition_info *new_part_info)
partition_element *new_sub_part_elem= new_sub_part_it++;
/* new_part_elem may not have engine_type set! */
if (new_sub_part_elem->engine_type &&
- sub_part_elem->engine_type != new_part_elem->engine_type)
+ sub_part_elem->engine_type != new_sub_part_elem->engine_type)
DBUG_RETURN(false);
if (strcmp(sub_part_elem->partition_name,