summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_regexp.test
diff options
context:
space:
mode:
authorEvgeny Potemkin <epotemkin@mysql.com>2008-08-27 17:03:17 +0400
committerEvgeny Potemkin <epotemkin@mysql.com>2008-08-27 17:03:17 +0400
commit06bf25e4d429682a518bea5a1b67392fe51756da (patch)
treebaca954ff10034b48b8cdf1cb6624a9943304ab6 /mysql-test/t/func_regexp.test
parentc770161ae80ba1d299dc8c7f14d214c379466fd5 (diff)
downloadmariadb-git-06bf25e4d429682a518bea5a1b67392fe51756da.tar.gz
Bug#38195: Incorrect handling of aggregate functions when loose index scan is
used causes server crash. When the loose index scan access method is used values of aggregated functions are precomputed by it. Aggregation of such functions shouldn't be performed in this case and functions should be treated as normal ones. The create_tmp_table function wasn't taking this into account and this led to a crash if a query has MIN/MAX aggregate functions and employs temporary table and loose index scan. Now the JOIN::exec and the create_tmp_table functions treat MIN/MAX aggregate functions as normal ones when the loose index scan is used. mysql-test/r/group_min_max.result: Added a test case for the bug#38195. mysql-test/t/group_min_max.test: Added a test case for the bug#38195. sql/sql_select.cc: Bug#38195: Incorrect handling of aggregate functions when loose index scan is used causes server crash. The JOIN::exec and the create_tmp_table functions treat MIN/MAX aggregate functions as normal ones when the loose index scan is used.
Diffstat (limited to 'mysql-test/t/func_regexp.test')
0 files changed, 0 insertions, 0 deletions