summaryrefslogtreecommitdiff
path: root/sql/partition_info.h
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2009-10-28 01:11:17 +0100
committerMikael Ronstrom <mikael@mysql.com>2009-10-28 01:11:17 +0100
commit10fed1aca0096acb135c2065233e84d61b00b9cf (patch)
tree32eac76c7c0b41298c58cd40bc85138e177d8a98 /sql/partition_info.h
parentcc43a2089cf6f45afb2cb5c15e2a077b075b80f8 (diff)
downloadmariadb-git-10fed1aca0096acb135c2065233e84d61b00b9cf.tar.gz
BUG#48165, needed to introduce length restrictions on partitioning fields to ensure that no stack overruns occur
Diffstat (limited to 'sql/partition_info.h')
-rw-r--r--sql/partition_info.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/partition_info.h b/sql/partition_info.h
index 015e0c1d6d0..4d3cc2222a6 100644
--- a/sql/partition_info.h
+++ b/sql/partition_info.h
@@ -19,8 +19,6 @@
#include "partition_element.h"
-#define MAX_STR_SIZE_PF 2048
-
class partition_info;
/* Some function typedefs */
@@ -298,6 +296,7 @@ public:
char *end_token, bool is_subpart);
static int compare_column_values(const void *a, const void *b);
bool set_up_charset_field_preps();
+ bool check_partition_field_length();
bool init_column_part();
bool add_column_list_value(THD *thd, Item *item);
private: