summaryrefslogtreecommitdiff
path: root/sql/partition_info.h
diff options
context:
space:
mode:
authorunknown <mikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-06-14 09:12:07 -0400
committerunknown <mikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-06-14 09:12:07 -0400
commite6170de4c01edaf6a39bd94d84be935f228332dc (patch)
tree827438a688b1352593deb848a80ecd9f5c6f17b5 /sql/partition_info.h
parent2ecd916de6f0daebb22f79cd6f0ad09f581c2aec (diff)
parent6e9bdcc9e91db27ca37535f7d4989d08727d1902 (diff)
downloadmariadb-git-e6170de4c01edaf6a39bd94d84be935f228332dc.tar.gz
Merge c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/clean-mysql-5.1
into c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug16002 sql/ha_ndbcluster.cc: Auto merged sql/sql_partition.h: Auto merged sql/sql_show.cc: Auto merged sql/sql_yacc.yy: Auto merged mysql-test/r/partition.result: manual merge mysql-test/r/partition_error.result: manual merge mysql-test/r/partition_range.result: manual merge mysql-test/t/partition.test: manual merge mysql-test/t/partition_error.test: manual merge mysql-test/t/partition_range.test: manual merge sql/ha_partition.cc: manual merge sql/partition_element.h: manual merge sql/partition_info.cc: manual merge sql/partition_info.h: manual merge sql/share/errmsg.txt: manual merge sql/sql_partition.cc: manual merge sql/sql_table.cc: manual merge sql/table.cc: manual merge
Diffstat (limited to 'sql/partition_info.h')
-rw-r--r--sql/partition_info.h25
1 files changed, 10 insertions, 15 deletions
diff --git a/sql/partition_info.h b/sql/partition_info.h
index af43f7b7933..f195e555934 100644
--- a/sql/partition_info.h
+++ b/sql/partition_info.h
@@ -167,6 +167,7 @@ public:
uint no_subpart_fields;
uint no_full_part_fields;
+ uint has_null_part_id;
/*
This variable is used to calculate the partition id when using
LINEAR KEY/HASH. This functionality is kept in the MySQL Server
@@ -187,7 +188,6 @@ public:
bool is_auto_partitioned;
bool from_openfrm;
bool has_null_value;
- uint has_null_part_id;
partition_info()
@@ -210,20 +210,14 @@ public:
no_parts(0), no_subparts(0),
count_curr_subparts(0), part_error_code(0),
no_list_values(0), no_part_fields(0), no_subpart_fields(0),
- no_full_part_fields(0), linear_hash_mask(0),
- use_default_partitions(TRUE),
- use_default_no_partitions(TRUE),
- use_default_subpartitions(TRUE),
- use_default_no_subpartitions(TRUE),
- default_partitions_setup(FALSE),
- defined_max_value(FALSE),
+ no_full_part_fields(0), has_null_part_id(0), linear_hash_mask(0),
+ use_default_partitions(TRUE), use_default_no_partitions(TRUE),
+ use_default_subpartitions(TRUE), use_default_no_subpartitions(TRUE),
+ default_partitions_setup(FALSE), defined_max_value(FALSE),
list_of_part_fields(FALSE), list_of_subpart_fields(FALSE),
- linear_hash_ind(FALSE),
- fixed(FALSE),
- is_auto_partitioned(FALSE),
- from_openfrm(FALSE),
- has_null_value(FALSE),
- has_null_part_id(0)
+ linear_hash_ind(FALSE), fixed(FALSE),
+ is_auto_partitioned(FALSE), from_openfrm(FALSE),
+ has_null_value(FALSE), has_null_part_id(0)
{
all_fields_in_PF.clear_all();
all_fields_in_PPF.clear_all();
@@ -255,10 +249,11 @@ public:
static bool check_engine_mix(handlerton **engine_array, uint no_parts);
bool check_range_constants();
bool check_list_constants();
- bool check_partition_info(handlerton **eng_type,
+ bool check_partition_info(THD *thd, handlerton **eng_type,
handler *file, ulonglong max_rows);
private:
static int list_part_cmp(const void* a, const void* b);
+ static int list_part_cmp_unsigned(const void* a, const void* b);
bool set_up_default_partitions(handler *file, ulonglong max_rows,
uint start_no);
bool set_up_default_subpartitions(handler *file, ulonglong max_rows);