Fixed BUG#8937: Stored Procedure: AVG() works as SUM() in SELECT ... INTO statement
mysql-test/r/sp.result: New test case for BUG#8937. mysql-test/t/sp.test: New test case for BUG#8937. sql/item_sum.h: Added val_int() method for Item_sum_avg for forced int types (in SPs for instance), otherwise Item_sum_sum::val_int() is used.
Showing
Please register or sign in to comment