summaryrefslogtreecommitdiff
path: root/sql/partition_element.h
diff options
context:
space:
mode:
authorunknown <mikael@c-7308e253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-06-05 14:55:22 -0400
committerunknown <mikael@c-7308e253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-06-05 14:55:22 -0400
commite05d2d06cb4adfe27dc4c0c4cb8f445332e9ab80 (patch)
tree291b3146c2532a98644faadc8882a4c060ad2931 /sql/partition_element.h
parent9d371277668f5dfe51feec9ed58b5712859b8fbb (diff)
downloadmariadb-git-e05d2d06cb4adfe27dc4c0c4cb8f445332e9ab80.tar.gz
BUG#16002: Handle unsigned integer partition functions
mysql-test/r/partition.result: Added new test cases mysql-test/r/partition_error.result: Fixed test case mysql-test/t/partition.test: Added new test cases mysql-test/t/partition_error.test: Fixed test case sql/ha_partition.cc: Review fixes sql/partition_element.h: Review fixes sql/partition_info.cc: Review fixes sql/share/errmsg.txt: Review fixes sql/sql_partition.cc: Review fixes sql/sql_yacc.yy: Enabled possibility to use (MAXVALUE) as well as MAXVALUE.
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),