• Ramil Kalimullin's avatar
    Fix for bug#42009: SELECT into variable gives different results to direct SELECT · 0781a302
    Ramil Kalimullin authored
    Problem: storing "SELECT ... INTO @var ..." results in variables we used val_xxx()
    methods which returned results of the current row. 
    So, in some cases (e.g. SELECT DISTINCT, GROUP BY or HAVING) we got data
    from the first row of a new group (where we evaluate a clause) instead of
    data from the last row of the previous group.
    
    Fix: use val_xxx_result() counterparts to get proper results.
    0781a302
sql_class.cc 65 KB