summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorunknown <gkodinov/kgeorge@magare.gmz>2007-10-19 15:43:19 +0300
committerunknown <gkodinov/kgeorge@magare.gmz>2007-10-19 15:43:19 +0300
commit1ebf037ddeb6e3d6d1b6374f684de665361666f2 (patch)
tree549f9b596e9a8042e40c32dcf92cb428477b3ba4 /sql/item_func.h
parent07559743b448f75d6880adc58b56195fb4b9717a (diff)
downloadmariadb-git-1ebf037ddeb6e3d6d1b6374f684de665361666f2.tar.gz
Bug #31157: crash when select+order by the avg of some field within the group by
The uncacheable flag should be set at fix_fields() stage. Fixed by moving the flag setting to match the one in 5.1 mysql-test/r/query_cache.result: Bug #31157: test case mysql-test/t/query_cache.test: Bug #31157: test case sql/item_func.cc: Bug #31157: The uncacheable flag should be set at fix_fields() stage. sql/item_func.h: Bug #31157: The uncacheable flag should be set at fix_fields() stage.
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 c22eb9b9cd9..6a3d230d2f2 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -935,6 +935,7 @@ public:
if (arg_count)
max_length= args[0]->max_length;
}
+ bool fix_fields(THD *thd, Item **ref);
};