diff options
author | Varun Gupta <varun.gupta@mariadb.com> | 2019-12-31 11:00:15 +0530 |
---|---|---|
committer | Varun Gupta <varun.gupta@mariadb.com> | 2020-01-02 09:49:13 +0530 |
commit | faf2a6e5f03b9c7bd52d838b2a9b4860c3b65bee (patch) | |
tree | 2fea02ad183e5573c32a5a725ef0393f947b965b /sql/item.h | |
parent | 359d91aaeec25825b51b0a00f52f272edad7d6cc (diff) | |
download | mariadb-git-faf2a6e5f03b9c7bd52d838b2a9b4860c3b65bee.tar.gz |
MDEV-20922: Adding an order by changes the query results
For Item_direct_view_ref , get value from val_* methods
instead of result* family
The val_* methods gets value from the item on which it is referred.
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h index bea09620ef8..8a90d99db9d 100644 --- a/sql/item.h +++ b/sql/item.h @@ -4477,6 +4477,14 @@ public: item_equal= NULL; Item_direct_ref::cleanup(); } + /* + TODO move these val_*_result function to Item_dierct_ref (maybe) + */ + double val_result(); + longlong val_int_result(); + String *str_result(String* tmp); + my_decimal *val_decimal_result(my_decimal *val); + bool val_bool_result(); }; |