• igor@olga.mysql.com's avatar
    Fixed bug #27348. · adc07255
    igor@olga.mysql.com authored
    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.
     
    adc07255
item_sum.cc 82.2 KB