diff options
author | Alexander Barkov <bar@mnogosearch.org> | 2013-11-21 11:46:36 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mnogosearch.org> | 2013-11-21 11:46:36 +0400 |
commit | 2394fa67d4908f62ef14f3ca90269fb32806d193 (patch) | |
tree | f1b54751a653ab37af221f1b22a5368f5ee05ffc /sql/item_sum.cc | |
parent | f8a6ee59acb082678cf601a10cbe9c1152748242 (diff) | |
download | mariadb-git-2394fa67d4908f62ef14f3ca90269fb32806d193.tar.gz |
MDEV-4859 Wrong value and data type of "SELECT MAX(time_column) + 1 FROM t1"
Fixed.
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index 489c0f1c23e..2d2001381a1 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -687,7 +687,7 @@ Item_sum_hybrid::fix_fields(THD *thd, Item **ref) void Item_sum_hybrid::setup_hybrid(Item *item, Item *value_arg) { - if (!(value= Item_cache::get_cache(item))) + if (!(value= Item_cache::get_cache(item, item->cmp_type()))) return; value->setup(item); value->store(value_arg); |