diff options
author | unknown <gkodinov/kgeorge@macbook.gmz> | 2006-10-31 11:01:27 +0200 |
---|---|---|
committer | unknown <gkodinov/kgeorge@macbook.gmz> | 2006-10-31 11:01:27 +0200 |
commit | 634d3991ab818ea4afc8d98b40de75b22e0cae54 (patch) | |
tree | dcbf2bbf181d7a3fb62c43e99e08fb7d44bfa6b0 /sql-bench/innotest2a.sh | |
parent | 5e1fe0f80043993c1db64169e4d87eb787762763 (diff) | |
download | mariadb-git-634d3991ab818ea4afc8d98b40de75b22e0cae54.tar.gz |
Bug #23184: SELECT causes server crash
Item::val_xxx() may be called by the server several times at execute time
for a single query. Calls to val_xxx() may be very expensive and sometimes
(count(distinct), sum(distinct), avg(distinct)) not possible.
To avoid that problem the results of calculation for these aggregate
functions are cached so that val_xxx() methods just return the calculated
value for the second and subsequent calls.
mysql-test/r/func_group.result:
Bug #23184: SELECT causes server crash
- test case
mysql-test/t/func_group.test:
Bug #23184: SELECT causes server crash
- test case
sql/item_sum.cc:
Bug #23184: SELECT causes server crash
- caching of the aggregate function results so no need to recalculate at val_xxx()
sql/item_sum.h:
Bug #23184: SELECT causes server crash
- caching of the aggregate function results so no need to recalculate at val_xxx()
Diffstat (limited to 'sql-bench/innotest2a.sh')
0 files changed, 0 insertions, 0 deletions