summaryrefslogtreecommitdiff
path: root/sql/sql_partition.cc
diff options
context:
space:
mode:
authorMattias Jonsson <mattias.jonsson@sun.com>2009-10-21 17:45:34 +0200
committerMattias Jonsson <mattias.jonsson@sun.com>2009-10-21 17:45:34 +0200
commit49a4ed2b3f01b1138934a7dc6d4eff8c529c3efd (patch)
tree28d56c02b647e3c79b9fe9c625242b03c51a5c27 /sql/sql_partition.cc
parent37b6043070ebed97158c4ef9e3c8534a8c23c860 (diff)
downloadmariadb-git-49a4ed2b3f01b1138934a7dc6d4eff8c529c3efd.tar.gz
WL#3352, minor code formatting fixes after code review
sql/opt_range.cc: WL#3352 code review fixes Corrected indenting and added range_par parameter for easier reading/formatting. sql/partition_element.h: WL#3352, changed formatting of copyright header sql/sql_partition.cc: WL#3352, fixed indenting and changed MAX_VALUE to MAXVALUE sql/sql_partition.h: WL#3352, fixed copyright header and indenting of function header
Diffstat (limited to 'sql/sql_partition.cc')
-rw-r--r--sql/sql_partition.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc
index f37fcebf616..0871dd8620f 100644
--- a/sql/sql_partition.cc
+++ b/sql/sql_partition.cc
@@ -3025,7 +3025,7 @@ int get_partition_id_range_col(partition_info *part_info,
{
loc_part_id= (max_part_id + min_part_id + 1) >> 1;
if (cmp_rec_and_tuple(range_col_array + loc_part_id*num_columns,
- num_columns) >= 0)
+ num_columns) >= 0)
min_part_id= loc_part_id + 1;
else
max_part_id= loc_part_id - 1;
@@ -6827,12 +6827,12 @@ uint32 store_tuple_to_record(Field **pfield,
/*
RANGE(columns) partitioning: compare value bound and probe tuple.
- The value bound always is a full tuple (but may include the MAX_VALUE
+ The value bound always is a full tuple (but may include the MAXVALUE
special value).
The probe tuple may be a prefix of partitioning tuple. The tail_is_min
parameter specifies whether the suffix components should be assumed to
- hold MAX_VALUE
+ hold MAXVALUE
*/
static int cmp_rec_and_tuple(part_column_list_val *val, uint32 nvals_in_rec)