summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorunknown <igor@olga.mysql.com>2007-03-27 09:48:10 -0700
committerunknown <igor@olga.mysql.com>2007-03-27 09:48:10 -0700
commitec3de56263e748603b954e29ca35bacb3e386176 (patch)
treecbad086848f82ca4ef82b4b350ce3a4eae03f168 /sql/opt_range.cc
parent6e93d2939df73eceb8b39e0c2e08e96fb4c764d2 (diff)
downloadmariadb-git-ec3de56263e748603b954e29ca35bacb3e386176.tar.gz
Fixed bug #27348.
If a set function with a outer reference s(outer_ref) cannot be aggregated the outer query against which the reference has been resolved then MySQL interpretes s(outer_ref) in the same way as it would interpret s(const). Hovever the standard requires throwing an error in this situation. Added some code to support this requirement in ansi mode. Corrected another minor bug in Item_sum::check_sum_func. mysql-test/r/subselect.result: Added a test case for bug #27348. mysql-test/t/subselect.test: Added a test case for bug #27348. sql/item_sum.cc: Fixed bug #27348. If a set function with a outer reference s(outer_ref) cannot be aggregated the outer query against which the reference has been resolved then MySQL interprets s(outer_ref) in the same way as it would interpret s(const). Hovever the standard requires throwing an error in this situation. Added some code to support this requirement in ansi mode. Corrected another minor bug in Item_sum::check_sum_func.
Diffstat (limited to 'sql/opt_range.cc')
0 files changed, 0 insertions, 0 deletions