summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-08-13 14:18:46 +0300
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-08-13 14:18:46 +0300
commita557509653a9909bf5bc27734a2d538254c9b1bc (patch)
tree024356d2458230c53fe64c589693908e101816ac /sql/item_func.h
parented736379f5ba4e681088a139cefaebb50600a44a (diff)
downloadmariadb-git-a557509653a9909bf5bc27734a2d538254c9b1bc.tar.gz
Bug #55615 and bug #55564
An user assignment variable expression that's evaluated in a logical expression context (Item::val_bool()) can be pre-calculated in a temporary table for GROUP BY. However when the expression value is used after the temp table creation it was re-evaluated instead of being read from the temp table due to a missing val_bool_result() method. Fixed by implementing the method.
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 71168c64e4b..256348eee08 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -1353,6 +1353,7 @@ public:
my_decimal *val_decimal(my_decimal *);
double val_result();
longlong val_int_result();
+ bool val_bool_result();
String *str_result(String *str);
my_decimal *val_decimal_result(my_decimal *);
bool is_null_result();