Created
November 8, 2018 10:04
-
-
Save spetrunia/7e7e3fcc60a81a6cb854e77c12c367d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sql/partition_info.cc b/sql/partition_info.cc | |
index f96882552fa..8be3f878f8d 100644 | |
--- a/sql/partition_info.cc | |
+++ b/sql/partition_info.cc | |
@@ -1713,12 +1713,12 @@ bool partition_info::check_partition_field_length() | |
for (i= 0; i < num_part_fields; i++) | |
store_length+= get_partition_field_store_length(part_field_array[i]); | |
- if (store_length > MAX_KEY_LENGTH) | |
+ if (store_length > MAX_DATA_LENGTH_FOR_KEY) | |
DBUG_RETURN(TRUE); | |
store_length= 0; | |
for (i= 0; i < num_subpart_fields; i++) | |
store_length+= get_partition_field_store_length(subpart_field_array[i]); | |
- if (store_length > MAX_KEY_LENGTH) | |
+ if (store_length > MAX_DATA_LENGTH_FOR_KEY) | |
DBUG_RETURN(TRUE); | |
DBUG_RETURN(FALSE); | |
} | |
diff --git a/sql/sql_const.h b/sql/sql_const.h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment