summaryrefslogtreecommitdiff
path: root/sql/partition_element.h
diff options
context:
space:
mode:
authormikael@c-7308e253.1238-1-64736c10.cust.bredbandsbolaget.se <>2006-06-05 14:55:22 -0400
committermikael@c-7308e253.1238-1-64736c10.cust.bredbandsbolaget.se <>2006-06-05 14:55:22 -0400
commit64ca16506b125fc71c4c6d5237ceb23c4c084d5d (patch)
tree291b3146c2532a98644faadc8882a4c060ad2931 /sql/partition_element.h
parentc94934210114b2510d98f73e599b365dafbc74e4 (diff)
downloadmariadb-git-64ca16506b125fc71c4c6d5237ceb23c4c084d5d.tar.gz
BUG#16002: Handle unsigned integer partition functions
Diffstat (limited to 'sql/partition_element.h')
-rw-r--r--sql/partition_element.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/partition_element.h b/sql/partition_element.h
index 7063e514901..7818c25c2f6 100644
--- a/sql/partition_element.h
+++ b/sql/partition_element.h
@@ -36,6 +36,13 @@ enum partition_state {
PART_IS_ADDED= 8
};
+/*
+ This struct is used to contain the value of an element
+ in the VALUES IN struct. It needs to keep knowledge of
+ whether it is a signed/unsigned value and whether it is
+ NULL or not.
+*/
+
typedef struct p_elem_val
{
longlong value;
@@ -59,8 +66,8 @@ public:
enum partition_state part_state;
uint16 nodegroup_id;
bool has_null_value;
- bool signed_flag;
- bool max_value;
+ bool signed_flag;/* Indicate whether this partition uses signed constants */
+ bool max_value; /* Indicate whether this partition uses MAXVALUE */
partition_element()
: part_max_rows(0), part_min_rows(0), range_value(0),