Merge Revision revid:georgi.kodinov@oracle.com-20100813080739-27p9rgxvo26a6psh from MySQL InnoDB
Original revid:georgi.kodinov@oracle.com-20100813080739-27p9rgxvo26a6psh
Original Authors: Georgi Kodinov <Georgi.Kodinov@Oracle.com> Original commit message: Bug #55580 : segfault in read_view_sees_trx_id
The server was not checking for errors generated during the execution of Item::val_xxx() methods when copying data to the group, order, or distinct temp table's row. Fixed by extending the copy_funcs() to return an error code and by checking for that error code on the places copy_funcs() is called. Test case added.