diff options
author | unknown <mikael@dator6.(none)> | 2008-01-28 22:05:25 +0100 |
---|---|---|
committer | unknown <mikael@dator6.(none)> | 2008-01-28 22:05:25 +0100 |
commit | bb091abb145f89e2332a5b49cbc221793bce3452 (patch) | |
tree | 4b0273ce5af7e1cbf67c72480e876a4ff2c115a7 /sql/item_func.h | |
parent | 4bacd53715ac860c6ba2d9c148f87d22cae9c62a (diff) | |
download | mariadb-git-bb091abb145f89e2332a5b49cbc221793bce3452.tar.gz |
BUG#33182: Disallow division due to div_precision_increment problems
mysql-test/r/partition.result:
New test case to validate that '/' is no longer allowed,
only integer division is allowed
mysql-test/t/partition.test:
New test case to validate that '/' is no longer allowed,
only integer division is allowed
sql/item_func.h:
+,-,*, mod is allowed
/ is disallowed
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index e09b584de95..c73b46f21e6 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -296,7 +296,6 @@ class Item_num_op :public Item_func_numhybrid void print(String *str) { print_op(str); } void find_num_type(); String *str_op(String *str) { DBUG_ASSERT(0); return 0; } - bool check_partition_func_processor(uchar *int_arg) {return FALSE;} }; @@ -382,6 +381,7 @@ class Item_func_additive_op :public Item_num_op public: Item_func_additive_op(Item *a,Item *b) :Item_num_op(a,b) {} void result_precision(); + bool check_partition_func_processor(uchar *int_arg) {return FALSE;} }; @@ -416,6 +416,7 @@ public: double real_op(); my_decimal *decimal_op(my_decimal *); void result_precision(); + bool check_partition_func_processor(uchar *int_arg) {return FALSE;} }; @@ -456,6 +457,7 @@ public: const char *func_name() const { return "%"; } void result_precision(); void fix_length_and_dec(); + bool check_partition_func_processor(uchar *int_arg) {return FALSE;} }; |