summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2005-12-27 15:04:35 +0300
committerunknown <sergefp@mysql.com>2005-12-27 15:04:35 +0300
commite6bff9a606691c068cc173bc25f8539517e46925 (patch)
tree15431e9fa1b562f790f150cc3942aa05e3384174 /sql/item.h
parent3862ee76fd784f0ddca5b3ce255b8ca8478b85f9 (diff)
downloadmariadb-git-e6bff9a606691c068cc173bc25f8539517e46925.tar.gz
WL#2985 "Partition pruning", postreview fixes: Small code fixes and better comments
mysql-test/r/partition.result: Added testcase for BUG#15819 mysql-test/t/partition.test: Added testcase for BUG#15819 sql/item.h: WL#2985 "Partition pruning", postreview fixes: better comments sql/item_timefunc.cc: WL#2985 "Partition pruning", postreview fixes: better comments sql/opt_range.cc: WL#2985 "Partition pruning", postreview fixes: - better comments, local function renames - Made SEL_ARG::is_singlepoint() to correctly handle NULL edge values. - fix uninitialized variable access: s/res |=/res =/ sql/sql_class.cc: WL#2985 "Partition pruning", postreview fixes: Set correct max. length of "partitions" column in EXPLAIN output sql/sql_lex.h: WL#2985 "Partition pruning", postreview fixes: better comments sql/sql_partition.cc: WL#2985 "Partition pruning", postreview fixes: better comments
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/item.h b/sql/item.h
index c240733bd04..ec643dcf0c8 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -381,13 +381,20 @@ public:
put values of field_i into table record buffer;
return item->val_int();
}
+
+ NOTE
+ At the moment function monotonicity is not well defined (and so may be
+ incorrect) for Item trees with parameters/return types that are different
+ from INT_RESULT, may be NULL, or are unsigned.
+ It will be possible to address this issue once the related partitioning bugs
+ (BUG#16002, BUG#15447, BUG#13436) are fixed.
*/
typedef enum monotonicity_info
{
NON_MONOTONIC, /* none of the below holds */
- MONOTONIC_INCREASING, /* F() is unary and "x < y" => "F(x) < F(y)" */
- MONOTONIC_STRICT_INCREASING /* F() is unary and "x < y" => "F(x) <= F(y)" */
+ MONOTONIC_INCREASING, /* F() is unary and (x < y) => (F(x) <= F(y)) */
+ MONOTONIC_STRICT_INCREASING /* F() is unary and (x < y) => (F(x) < F(y)) */
} enum_monotonicity_info;
/*************************************************************************/