summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-08-02 11:58:52 -0700
committerunknown <igor@rurik.mysql.com>2005-08-02 11:58:52 -0700
commitc2b83502f9eac1ac06049aacbf68a70c342f2b27 (patch)
tree174e074356395385368c4756c2a9e9c1dd41bb4e /sql/sql_select.cc
parent3202508b26bcfb63efaf37204ce07cafd6268d4b (diff)
downloadmariadb-git-c2b83502f9eac1ac06049aacbf68a70c342f2b27.tar.gz
sql_select.cc, sql_class.h:
Reversed the changes to fix bug #12095 after review done by SergeyG. Applied a fix suggested by him. sql/sql_class.h: Reversed the changes to fix bug #12095 after review done by SergeyG. Applied a fix suggested by him. sql/sql_select.cc: Reversed the changes to fix bug #12095 after review done by SergeyG. Applied a fix suggested by him.
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index fc85f49093d..1bde62276b8 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -5201,8 +5201,7 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
param->using_indirect_summary_function=1;
continue;
}
- if (item->const_item() && (int) hidden_field_count <= 0 &&
- !param->need_const)
+ if (item->const_item() && (int) hidden_field_count <= 0)
continue; // We don't have to store this
}
if (type == Item::SUM_FUNC_ITEM && !group && !save_sum_fields)